mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Tweak unknown platform error message
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user