projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63b8492
)
Remove custom MODULE_NOT_FOUND code check
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 24 May 2016 16:45:32 +0000
(09:45 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 24 May 2016 16:45:32 +0000
(09:45 -0700)
default_app/main.js
patch
|
blob
|
history
diff --git
a/default_app/main.js
b/default_app/main.js
index
02f7a9f
..
e90c466
100644
(file)
--- 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
}
}