🎨 Improve error message
This commit is contained in:
parent
e05f795d1d
commit
06e3e65c1b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue