forked from aws/aws-lambda-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lambda: check if error type is InvokeResponse_Error
Currently, we cannot set the errorType field without creating a custom named error type. This causes a proliferation of dummy named error types whose only purpose is to set a text field, and limits the errorType field to what can be expressed as an identifier. This change checks that the panicked or returned error is if type InvokeResponse_Error, and if so, uses it directly in the invoker's response. InvokeResponse_Error is now updated to implement error. Note: This is fully backwards compatible, since InvokeResponse_Error previously did not implement the error interface. Fixes aws#308.
- Loading branch information
1 parent
eebb995
commit 488ab7a
Showing
4 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters