serverless-serve icon indicating copy to clipboard operation
serverless-serve copied to clipboard

context.fail(error) does not displays the error message

Open ssalazars opened this issue 9 years ago • 0 comments

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?

ssalazars avatar Feb 22 '16 05:02 ssalazars