Tweak unknown platform error message
This commit is contained in:
parent
675a47b42c
commit
7dc95671cd
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ var paths = {
|
||||||
win32: 'dist/electron.exe'
|
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]))) {
|
if (installedVersion === version && fs.existsSync(path.join(__dirname, paths[platform]))) {
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
|
Loading…
Reference in a new issue