Skip to content

Improve error catch  #7

@dralagen

Description

@dralagen

Express catch error and send JSON error when use

return next(err); 

error is a json object with message and optional status and stack as :

{
   message: "Error",
   status: 500,
   stack: "Error Stack trace visible just on development mode"
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions