mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: report module name when require fails in sandboxed renderers (#17703)
This commit is contained in:
committed by
John Kleinschmidt
parent
e84a6860e3
commit
87a71ed1ed
@@ -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:') {
|
||||
|
||||
Reference in New Issue
Block a user