mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Tweak resolve filename error message
This commit is contained in:
@@ -257,9 +257,10 @@ function loadApplicationPackage (packagePath) {
|
||||
try {
|
||||
Module._resolveFilename(packagePath, module, true)
|
||||
} catch (e) {
|
||||
showErrorMessage('Unable to find Electron app.\n\n' +
|
||||
`See: ${packagePath}`)
|
||||
showErrorMessage(`Unable to find Electron app at ${packagePath}.\n\n${e.message}`)
|
||||
return
|
||||
}
|
||||
|
||||
// Run the app.
|
||||
Module._load(packagePath, module, true)
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user