Skip to content

Commit 6c55b98

Browse files
committed
chore: use prod error handlers in dev
1 parent 21374fa commit 6c55b98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

backend/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,8 @@ function errorHandler(err) {
172172
// tslint:enable:no-console
173173
}
174174

175-
if (process.env.NODE_ENV === "production") {
176-
process.on("uncaughtException", errorHandler);
177-
process.on("unhandledRejection", errorHandler);
178-
}
175+
process.on("uncaughtException", errorHandler);
176+
process.on("unhandledRejection", errorHandler);
179177

180178
// Verify required Node.js version
181179
const REQUIRED_NODE_VERSION = "16.9.0";

0 commit comments

Comments
 (0)