upload: check zip file exists before trying to upload

This commit is contained in:
Gleb Bahmutov
2017-07-06 09:48:24 -04:00
parent 9dbc771d57
commit 328b4d8221
+2
View File
@@ -126,6 +126,8 @@ module.exports = {
la(meta.isValidPlatform(platform), "invalid platform", platform)
console.log("zip filename #{zipFile}")
if !fs.existsSync(zipFile)
throw new Error("Cannot find zip file #{zipFile}")
upload = =>
new Promise (resolve, reject) =>