diff --git a/default_app/main.js b/default_app/main.js index cc3e48c6e344..e9b744c603ff 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -238,7 +238,7 @@ function loadApplicationPackage (packagePath) { try { packageJson = JSON.parse(fs.readFileSync(packageJsonPath)) } catch (e) { - showErrorMessage('Unable to parse package.json, it contains errors.\n\n' + + showErrorMessage('Unable to parse package.json.\n\n' + `${e.toString()} in ${packageJsonPath}`) } if (packageJson.version) app.setVersion(packageJson.version) @@ -248,10 +248,6 @@ function loadApplicationPackage (packagePath) { } else if (packageJson.name) { app.setName(packageJson.name) } - if (!packageJson.main) { - showErrorMessage('App is missing \'main\' property in package.json.\n\n' + - `See: ${packageJsonPath}`) - } app.setPath('userData', path.join(app.getPath('appData'), app.getName())) app.setPath('userCache', path.join(app.getPath('cache'), app.getName())) app.setAppPath(packagePath)