We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02821fe commit 7aa746fCopy full SHA for 7aa746f
Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift
@@ -55,7 +55,13 @@ 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(
60
+ continuation: continuation
61
+ )
62
+ } catch {
63
+ continuation.resume(throwing: error)
64
+ }
65
}
66
67
// now that server is started, run the Lambda function itself
0 commit comments