Remove custom MODULE_NOT_FOUND code check
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 24 May 2016 16:45:32 +0000 (09:45 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 24 May 2016 16:45:32 +0000 (09:45 -0700)
default_app/main.js

index 02f7a9f..e90c466 100644 (file)
@@ -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
   }
 }