serverless-serve
serverless-serve copied to clipboard
context.fail(error) does not displays the error message
Hi guys,
When working with Serverless Serve plug-in, I noticed that when executing context.fail(error), no data gets populated in the error object:
{"errorMessage":{}}
When running the exact same code from AWS Lambda, I get:
{"errorMessage":"Missing param","errorType":"Error","stackTrace":["n.exports.handler (/var/task/class/handler.js:1:1001)"]}
Is this something Serve is responsible from catching and populating?