Print stack traces when starting app failed in addition to a dialog
This commit is contained in:
parent
66ab127389
commit
6bfa69ceda
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ if (argv._.length > 0) {
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
if (e.code == 'MODULE_NOT_FOUND') {
|
if (e.code == 'MODULE_NOT_FOUND') {
|
||||||
app.focus();
|
app.focus();
|
||||||
|
console.error(e.stack);
|
||||||
dialog.showMessageBox({
|
dialog.showMessageBox({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
buttons: ['OK'],
|
buttons: ['OK'],
|
||||||
|
|
Loading…
Reference in a new issue