Lead with package.json path

This commit is contained in:
Kevin Sawicki 2016-05-24 09:38:04 -07:00
parent f691a46d4d
commit deb15e60b5

View file

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