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. // Run the app.
Module._load(packagePath, module, true) Module._load(packagePath, module, true)
} catch (e) { } catch (e) {
if (e.code === 'MODULE_NOT_FOUND') { console.error('App threw an error during load')
showErrorMessage('Unable to open Electron app.\n\n' + console.error(e)
`${e.toString()}`)
} else {
console.error('App threw an error when running', e)
throw e throw e
} }
} }
}
function showErrorMessage (message) { function showErrorMessage (message) {
app.focus() app.focus()