Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio authored Oct 8, 2019
1 parent 1be08b9 commit 0ffef34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Then, register an error handler to report and customize errors
```javascript
app.use((err, req, res, next) => {
// format error
res.status(err.status).json({
res.status(err.status || 500).json({
message: err.message,
errors: err.errors,
});
Expand Down

0 comments on commit 0ffef34

Please sign in to comment.