We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02821fe commit 1399f18Copy full SHA for 1399f18
Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift
@@ -55,7 +55,11 @@ extension Lambda {
55
// this call will return when the server calls continuation.resume()
56
try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, any Error>) in
57
group.addTask {
58
- try await LambdaHttpServer(invocationEndpoint: invocationEndpoint).start(continuation: continuation)
+ do {
59
+ try await LambdaHttpServer(invocationEndpoint: invocationEndpoint).start(continuation: continuation)
60
+ } catch {
61
+ continuation.resume(throwing: error)
62
+ }
63
}
64
65
// now that server is started, run the Lambda function itself
0 commit comments