Skip to content

Commit

Permalink
fix header error in /handled
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmanvar committed Aug 12, 2019
1 parent 0777e18 commit dd9f748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ app.get('/handled', function (req, res) {
try {
let obj = {};
obj.doesNotExist();
res.send('Success');
} catch (error) {
Sentry.captureException(error);
res.status(500).send("Something broke");
}
res.send('Success');
});

// The error handler must be before any other error middleware
Expand Down

0 comments on commit dd9f748

Please sign in to comment.