Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Jul 22, 2019
1 parent 03cc49b commit b69bcc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Then, register an error handler to customize errors
app.use((err, req, res, next) => {
// format error
res.status(err.status).json({
message: err.message,
errors: err.errors,
});
});
Expand Down

0 comments on commit b69bcc5

Please sign in to comment.