diff --git a/tasks/update-atom-shell-task.coffee b/tasks/update-atom-shell-task.coffee index 23dca81b7..fa16544f0 100644 --- a/tasks/update-atom-shell-task.coffee +++ b/tasks/update-atom-shell-task.coffee @@ -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()