From 376567c97e480d840a35be93863c92efe2c19c33 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 17 Apr 2022 18:55:37 +0100 Subject: [PATCH] [Bootstrap] Add uncaughtException handler --- src/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap.js b/src/bootstrap.js index 6e47c31..4aec26f 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -23,7 +23,7 @@ const fatal = e => { detail: e?.stack ?? String(e) }).then(() => app.quit()); }; -// process.on('uncaughtException', fatal); +process.on('uncaughtException', console.error); const splash = require('./splash');