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 (#17704)
This commit is contained in:
committed by
Shelley Vohr
parent
042f24c5b6
commit
46a1ce8117
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user