Skip to content

Commit a0ae30d

Browse files
handle error string while checking for upload
1 parent 1779578 commit a0ae30d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/helpers/checkUploaded.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ const checkUploadedMd5 = (bsConfig, args, instrumentBlocks) => {
145145
}
146146
});
147147
}).catch((err) => {
148-
resolve({zipUrlPresent: false, packageUrlPresent: false, error: err.stack.substring(0,100)});
148+
let errString = err.stack ? err.stack.toString().substring(0,100) : err.toString().substring(0,100);
149+
resolve({zipUrlPresent: false, packageUrlPresent: false, error: errString});
149150
});
150151
});
151152
};

0 commit comments

Comments
 (0)