Merge pull request #5588 from brunoqueiros/error-message

Improve error message
This commit is contained in:
Kevin Sawicki 2016-05-18 17:41:57 -07:00
commit 1032287511

View file

@ -121,11 +121,7 @@ if (preloadScript) {
try {
require(preloadScript)
} catch (error) {
if (error.code === 'MODULE_NOT_FOUND') {
console.error('Unable to load preload script ' + preloadScript)
} else {
console.error(error)
console.error(error.stack)
}
console.error('Unable to load preload script: ' + preloadScript)
console.error(error.stack || error.message)
}
}