Skip to content

Commit

Permalink
Return error to user
Browse files Browse the repository at this point in the history
Allow fastify to pick up the error.
Resolves: alex-ppg#6
  • Loading branch information
gboston committed Apr 7, 2020
1 parent 8ea8201 commit 9f35f39
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ function sentryConnector(fastify, options, done) {
Sentry.captureException(err);
options.errorHandler
? options.errorHandler(err, req, reply)
: reply.send({
error: 500,
message: "Internal Server Error"
});
: reply.send(err);
});
});
done();
Expand Down

0 comments on commit 9f35f39

Please sign in to comment.