Skip to content

Commit

Permalink
cr(user): Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
richienabuk committed Aug 28, 2019
1 parent 4467294 commit 7c24d05
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export default (app) => {
error: 'This route is unavailable on this server'
}));

// app.use((error, req, res, next) => {
// res.status(error.status || 500);
// res.send({
// status: 'error',
// error: error.message
// });
// });
// eslint-disable-next-line no-unused-vars
app.use((error, req, res, next) => {
res.status(error.status || 500);
res.send({
status: 'error',
error: error.message
});
});
};

0 comments on commit 7c24d05

Please sign in to comment.