Remove custom MODULE_NOT_FOUND code check

This commit is contained in:
Kevin Sawicki 2016-05-24 09:45:32 -07:00
parent 63b84923ce
commit 48522d4b70

View file

@ -266,15 +266,11 @@ 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)
console.error('App threw an error during load')
console.error(e)
throw e
}
}
}
function showErrorMessage (message) {
app.focus()