Merge pull request #5588 from brunoqueiros/error-message
Improve error message
This commit is contained in:
commit
1032287511
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue