Skip to content

Commit 0554ab5

Browse files
committed
bug fix
1 parent 491646e commit 0554ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/helpers/buildArtifacts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ const downloadAndUnzip = async (filePath, fileName, url) => {
112112
try {
113113
const response = await axios.get(url, {responseType: 'stream'});
114114
if(response.status != 200) {
115-
if (response.statusCode === 404) {
115+
if (response.status === 404) {
116116
reject(Constants.userMessages.DOWNLOAD_BUILD_ARTIFACTS_NOT_FOUND);
117117
}
118-
const errorMsg = `Non 200 status code, got status code: ${response.statusCode}`;
118+
const errorMsg = `Non 200 status code, got status code: ${response.status}`;
119119
reject(errorMsg);
120120
} else {
121121
//ensure that the user can call `then()` only when the file has

0 commit comments

Comments
 (0)