Skip to content

Commit

Permalink
fix(server): premature closes crashing server
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 17, 2023
1 parent 71e6cf3 commit 3f623f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async function plugin(server, config) {
(res.statusCode === 200 && !err.statusCode)
) {
res.log.error(err);
return res.internalServerError();
throw server.httpErrors.internalServerError();
}

throw err;
Expand Down

0 comments on commit 3f623f0

Please sign in to comment.