Skip to content

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

Description

@ssalazars

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions