serverless-plugin-simulate
serverless-plugin-simulate copied to clipboard
fix response header when lambda function returns errorMessage
What did you implement:
Closes #101
How did you implement it:
When lambda function returns an errorMessage (that means the function handle the error) the invoke/local not reject the promise and registry/invoke set the correct header (X-Amz-Function-Error) for response of lambda invoke
How can we verify it:
- Go to examples folder, and start simulating lambda
- Open a new terminal and run
aws lambda invoke --function-name docker-dev-lambdaError outfile.txt --endpoint-url http://localhost:4000
Todos:
- [x] Write tests
- [x] Write documentation
- [x] Fix linting errors
- [x] Provide verification config/commands/resources
- [x] Change ready for review message below
Is this ready for review?: YES