mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-24 07:59:12 -05:00
upload: check zip file exists before trying to upload
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user