Skip to content

Commit 48522d4

Browse files
committed
Remove custom MODULE_NOT_FOUND code check
1 parent 63b8492 commit 48522d4

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

default_app/main.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,9 @@ function loadApplicationPackage (packagePath) {
266266
// Run the app.
267267
Module._load(packagePath, module, true)
268268
} catch (e) {
269-
if (e.code === 'MODULE_NOT_FOUND') {
270-
showErrorMessage('Unable to open Electron app.\n\n' +
271-
`${e.toString()}`)
272-
} else {
273-
console.error('App threw an error when running', e)
274-
throw e
275-
}
269+
console.error('App threw an error during load')
270+
console.error(e)
271+
throw e
276272
}
277273
}
278274

0 commit comments

Comments
 (0)