Tweak resolve filename error message
This commit is contained in:
parent
deb15e60b5
commit
6de4249af8
1 changed files with 3 additions and 2 deletions
|
@ -257,9 +257,10 @@ function loadApplicationPackage (packagePath) {
|
||||||
try {
|
try {
|
||||||
Module._resolveFilename(packagePath, module, true)
|
Module._resolveFilename(packagePath, module, true)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
showErrorMessage('Unable to find Electron app.\n\n' +
|
showErrorMessage(`Unable to find Electron app at ${packagePath}.\n\n${e.message}`)
|
||||||
`See: ${packagePath}`)
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run the app.
|
// Run the app.
|
||||||
Module._load(packagePath, module, true)
|
Module._load(packagePath, module, true)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue