Skip to content

Commit

Permalink
fix: do not call render in the errorHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrobertson committed Dec 19, 2024
1 parent bab6e2f commit 0092f7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ export const errorHandler = (
next: express.NextFunction // eslint-disable-line @typescript-eslint/no-unused-vars
) => {
interceptStderrWrite();
res.status(500);
res.render('error', {error: err});
sendCrashResponse({err, res});
};

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 0092f7c

Please sign in to comment.