]> khamidou — GitHub mirrors - electron.git/commitdiff
Print real error messages even if it looks like an invalid app
authorYeechan Lu <wz.bluesnow@gmail.com>
Fri, 29 May 2015 06:53:32 +0000 (14:53 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 1 Jun 2015 02:13:33 +0000 (10:13 +0800)
atom/browser/default_app/main.js

index 5664fac4cd21caa8356a8f55a1e203647ce2a77d..1726ffba8ea12503ac142db1324b1c6732507f69 100644 (file)
@@ -53,7 +53,7 @@ if (option.file && !option.webdriver) {
   } catch(e) {
     if (e.code == 'MODULE_NOT_FOUND') {
       app.focus();
-      dialog.showErrorBox('Error opening app', 'The app provided is not a valid electron app, please read the docs on how to write one:\nhttps://github.com/atom/electron/tree/master/docs');
+      dialog.showErrorBox('Error opening app', 'The app provided is not a valid electron app, please read the docs on how to write one:\nhttps://github.com/atom/electron/tree/master/docs\n\n' + e.toString());
       process.exit(1);
     } else {
       console.error('App threw an error when running', e);