Lead with package.json path
This commit is contained in:
parent
f691a46d4d
commit
deb15e60b5
1 changed files with 2 additions and 2 deletions
|
@ -239,8 +239,8 @@ function loadApplicationPackage (packagePath) {
|
|||
try {
|
||||
packageJson = JSON.parse(fs.readFileSync(packageJsonPath))
|
||||
} catch (e) {
|
||||
showErrorMessage('Unable to parse package.json.\n\n' +
|
||||
`${e.toString()} in ${packageJsonPath}`)
|
||||
showErrorMessage(`Unable to parse ${packageJsonPath}\n\n${e.message}`)
|
||||
return
|
||||
}
|
||||
if (packageJson.version) app.setVersion(packageJson.version)
|
||||
|
||||
|
|
Loading…
Reference in a new issue