Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Mar 26, 2019
1 parent 5bde3e0 commit cb500d2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ app.use((err, req, res, next) => {
});
});

// Register error handler!
app.use((err, req, res, next) => {
// format error
res.status(err.status).json({
errors: err.errors,
});
});

var server = http.createServer(app);
server.listen(3000);
Expand Down

0 comments on commit cb500d2

Please sign in to comment.