chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-09 04:22:25 +00:00
parent ebe6087e8f
commit a9ccb0804f
3 changed files with 20 additions and 11 deletions

View File

@@ -36,9 +36,7 @@ export const errorLayer = HttpRouter.middleware<{ handles: unknown }>()((effect)
}),
Effect.map(normalizeEmptyBadRequest),
Effect.catchCause((cause) => {
const schemaError = cause.reasons
.filter(Cause.isDieReason)
.find((reason) => HttpApiSchemaError.is(reason.defect))
const schemaError = cause.reasons.filter(Cause.isDieReason).find((reason) => HttpApiSchemaError.is(reason.defect))
if (schemaError) return Effect.succeed(badRequestResponse())
const defect = cause.reasons.filter(Cause.isDieReason).find((reason) => {
@@ -63,7 +61,7 @@ export const errorLayer = HttpRouter.middleware<{ handles: unknown }>()((effect)
return 500
}),
}),
)
)
}
if (error instanceof Session.BusyError) {
return Effect.succeed(