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

This commit is contained in:
Milan Burda
2019-04-12 19:37:53 +02:00
committed by John Kleinschmidt
parent e84a6860e3
commit 87a71ed1ed

View File

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