Skip to content

Commit

Permalink
fix: report module name when require fails in sandboxed renderers (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak authored and codebytere committed Apr 10, 2019
1 parent 042f24c commit 46a1ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sandboxed_renderer/init.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 46a1ce8

Please sign in to comment.