From 48522d4b70e4872184319cfe4e9197d01ced788f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 24 May 2016 09:45:32 -0700 Subject: [PATCH] Remove custom MODULE_NOT_FOUND code check --- default_app/main.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/default_app/main.js b/default_app/main.js index 02f7a9f..e90c466 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -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 } } -- 2.7.4