Merge pull request #173 from electron-userland/platform-error
Mention builds not available when platform not found
This commit is contained in:
commit
ff590850f9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ var paths = {
|
|||
win32: 'dist/electron.exe'
|
||||
}
|
||||
|
||||
if (!paths[platform]) throw new Error('Unknown platform: ' + platform)
|
||||
if (!paths[platform]) throw new Error('Electron builds are not available on platform: ' + platform)
|
||||
|
||||
if (installedVersion === version && fs.existsSync(path.join(__dirname, paths[platform]))) {
|
||||
process.exit(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue