Skip to content

Commit dcbda48

Browse files
committed
add more details error message + warning
1 parent 36dc6f1 commit dcbda48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AWSLambdaRuntime/LambdaRuntime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLamb
8282
// The handler can be non-sendable, we want to ensure we only ever have one copy of it
8383
let handler = try? self.handlerStorage.get()
8484
guard let handler else {
85-
throw LambdaRuntimeError(code: .runtimeCanOnlyBeStartedOnce)
85+
throw LambdaRuntimeError(code: .handlerCanOnlyBeGetOnce)
8686
}
8787

8888
// are we running inside an AWS Lambda runtime environment ?

0 commit comments

Comments
 (0)