Browse Source

fix: report module name when require fails in sandboxed renderers (#17704)

Milan Burda 6 years ago
parent
commit
46a1ce8117
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/sandboxed_renderer/init.js

+ 1 - 1
lib/sandboxed_renderer/init.js

@@ -100,7 +100,7 @@ function preloadRequire (module) {
   if (remoteModules.has(module)) {
     return require(module)
   }
-  throw new Error('module not found')
+  throw new Error(`module not found: ${module}`)
 }
 
 switch (window.location.protocol) {