Remove custom MODULE_NOT_FOUND code check
This commit is contained in:
parent
63b84923ce
commit
48522d4b70
1 changed files with 3 additions and 7 deletions
|
@ -266,13 +266,9 @@ function loadApplicationPackage (packagePath) {
|
|||
// Run the app.
|
||||
Module._load(packagePath, module, true)
|
||||
} catch (e) {
|
||||
if (e.code === 'MODULE_NOT_FOUND') {
|
||||
showErrorMessage('Unable to open Electron app.\n\n' +
|
||||
`${e.toString()}`)
|
||||
} else {
|
||||
console.error('App threw an error when running', e)
|
||||
throw e
|
||||
}
|
||||
console.error('App threw an error during load')
|
||||
console.error(e)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue