fix: report module name when require fails in sandboxed renderers (#17413)
This commit is contained in:
parent
06a4594435
commit
7389dfca59
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ function preloadRequire (module) {
|
|||
if (loadedModules.has(module)) {
|
||||
return loadedModules.get(module)
|
||||
}
|
||||
throw new Error('module not found')
|
||||
throw new Error(`module not found: ${module}`)
|
||||
}
|
||||
|
||||
// Process command line arguments.
|
||||
|
|
Loading…
Reference in a new issue