We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9916cf2 commit e1d4647Copy full SHA for e1d4647
Sources/OpenAPILambdaHandler.swift
@@ -119,6 +119,10 @@ public struct OpenAPILambdaHandler<OALS: OpenAPILambdaService>: Sendable {
119
)
120
121
}
122
+ catch {
123
+ // some other error happened
124
+ lambdaResponse = (HTTPResponse(status: .internalServerError), "Unknown error: \(String(reflecting: error))")
125
+ }
126
127
// transform the OpenAPILambdaResponse to the Lambda Output
128
return openAPIService.output(from: lambdaResponse)
0 commit comments