Print error when "preload" script is not found
This commit is contained in:
parent
111dcbac25
commit
f90fb8cc72
1 changed files with 6 additions and 1 deletions
|
@ -90,4 +90,9 @@ else
|
|||
delete global.clearImmediate
|
||||
|
||||
# Load the script specfied by the "preload" attribute.
|
||||
require preloadScript if preloadScript
|
||||
if preloadScript
|
||||
try
|
||||
require preloadScript
|
||||
catch error
|
||||
throw error unless error.code is 'MODULE_NOT_FOUND'
|
||||
console.error "Unable to load preload script #{preloadScript}"
|
||||
|
|
Loading…
Reference in a new issue