fix: crash if unable to get latest version

This commit is contained in:
Julian Lam
2020-06-03 20:03:37 -04:00
parent 678ffe598a
commit afdb235f48

View File

@@ -33,6 +33,10 @@ function getLatestVersion(callback) {
return callback(null, versionCache);
}
if (res.statusCode === 403) {
return callback(null, null);
}
if (res.statusCode !== 200) {
return callback(Error(res.statusMessage));
}