diff --git a/js/script-loader.js b/js/script-loader.js index ea31ba0d..feb56bdf 100644 --- a/js/script-loader.js +++ b/js/script-loader.js @@ -23,7 +23,7 @@ var loadScript = (function () { cache.set(path, script); }; script.onerror = event => { - reject(event); + reject(new Error(`failed to load script: ${path}`)); script.onload = null; script.onerror = null; script.parentNode.removeChild(script);