Fix crash
This commit is contained in:
parent
69385a6726
commit
bace7cb2ca
@ -54,7 +54,7 @@ function runTestsIfNeeded(callback) {
|
||||
function getLatestBoxVersion(callback) {
|
||||
superagent.get(process.env.BOX_VERSIONS_URL).end(function (error, res) {
|
||||
if (error || res.statusCode !== 200 || !res.body) {
|
||||
debug('Error downloading versions file', error, res.statusCode);
|
||||
debug('Error downloading versions file', error || res.statusCode);
|
||||
return callback(new Error('Error downloading versions file'));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user