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

This commit is contained in:
Milan Burda 2019-03-19 20:00:41 +01:00 committed by Samuel Attard
parent 06a4594435
commit 7389dfca59

View file

@ -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.