Skip to content

Commit 8aa9a46

Browse files
author
Sebastien Stormacq
committed
fix typo and language in comments
1 parent af43436 commit 8aa9a46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AWSLambdaRuntime/Lambda+LocalServer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,13 @@ internal struct LambdaHTTPServer {
420420
}
421421
} else {
422422
logger.error(
423-
"Received response for a different request id",
423+
"Received response for a different requestId",
424424
metadata: ["response requestId": "\(response.requestId ?? "")"]
425425
)
426426
let response = LocalServerResponse(
427427
id: requestId,
428428
status: .badRequest,
429-
body: ByteBuffer(string: "The response Id not equal to the request Id.")
429+
body: ByteBuffer(string: "The responseId is not equal to the requestId.")
430430
)
431431
try await self.sendResponse(response, outbound: outbound, logger: logger)
432432
}
@@ -626,7 +626,7 @@ internal struct LambdaHTTPServer {
626626
}
627627

628628
case .continuation(_):
629-
fatalError("\(self.poolName) : Concurrent invocations to next(). This is illegal.")
629+
fatalError("\(self.poolName) : Concurrent invocations to next(). This is not allowed.")
630630
}
631631
}
632632

0 commit comments

Comments
 (0)