[ErrorHandler] fatal: Add log
This commit is contained in:
parent
a8d6aa191b
commit
9a97e2338f
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
const { app, dialog } = require("electron");
|
||||
|
||||
|
||||
exports.fatal = (e) => dialog.showMessageBox({
|
||||
exports.fatal = (e) => console.log(e) || dialog.showMessageBox({
|
||||
type: 'error',
|
||||
message: 'A fatal Javascript error occured',
|
||||
detail: e?.stack ?? String(e)
|
||||
|
|
Loading…
Reference in a new issue