[ErrorHandler] fatal: Add log

This commit is contained in:
Ducko 2022-04-16 22:56:42 +01:00
parent a8d6aa191b
commit 9a97e2338f

View file

@ -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)