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:
e05f795
)
:art: Improve error message
author
Bruno Queiros
<brunoofq@gmail.com>
Wed, 18 May 2016 14:00:08 +0000
(11:00 -0300)
committer
Bruno Queiros
<brunoofq@gmail.com>
Wed, 18 May 2016 14:00:08 +0000
(11:00 -0300)
lib/renderer/init.js
patch
|
blob
|
history
diff --git
a/lib/renderer/init.js
b/lib/renderer/init.js
index
bff4ea7
..
aa9ab90
100644
(file)
--- a/
lib/renderer/init.js
+++ b/
lib/renderer/init.js
@@
-121,7
+121,7
@@
if (preloadScript) {
try {
require(preloadScript)
} catch (error) {
- if (error.code === 'MODULE_NOT_FOUND') {
+ if (error.code === 'MODULE_NOT_FOUND'
&& error.message.indexOf(preloadScript) > -1
) {
console.error('Unable to load preload script ' + preloadScript)
} else {
console.error(error)