mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Catch any errors thrown by adm-zip
This commit is contained in:
@@ -45,9 +45,12 @@ module.exports = (grunt) ->
|
||||
inputStream.on 'close', -> callback()
|
||||
inputStream.on 'error', -> callback(new Error("Unzipping #{zipPath} failed"))
|
||||
|
||||
zip = new AdmZip(zipPath);
|
||||
zip.extractAllTo(directoryPath, true)
|
||||
rm(zipPath, force: true)
|
||||
try
|
||||
zip = new AdmZip(zipPath);
|
||||
zip.extractAllTo(directoryPath, true)
|
||||
rm(zipPath, force: true)
|
||||
catch error
|
||||
callback(error)
|
||||
|
||||
rebuildNativeModules = (previousVersion, callback) ->
|
||||
newVersion = getAtomShellVersion()
|
||||
|
||||
Reference in New Issue
Block a user