-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception returns successfully #3
Comments
Not throwing the exception is an oversight from my end in the rush to release on Christmas eve. It should of course do that. :) So with that and your PR for catchException flag in mind, do you see any scenario when we don't want to throw the exception? |
Merged part of the code to fix the issue with not throwing the exception and published a new version of the package. The question if we want catchException flag is still open. |
@gunnargrosch my thinking was that there may be merit to wanting the Lambda function to exit with an error without necessarily reporting the error to Lambda. Putting potentially dangerous code inside a try / catch is very common in my experience - so I think it would be valuable to have as a feature. |
@jpbarto Sounds good to me! To keep this as a minor update I would like the setting in the parameter to be optional. Would mean that users don't have change their parameters to use the new version. I guess that means a simple if statement by the newly added throw ex. |
When setting 'failureMode' to 'exception' the Lambda function returns successfully, an exception occurs but the Lambda function succeeds.
I would have expected a thrown exception to cause the Lambda function to fail.
The text was updated successfully, but these errors were encountered: