Skip to content

Commit

Permalink
Ignore halt when 500 is encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalf committed Feb 17, 2016
1 parent ce38960 commit e9cf81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Download.prototype.get = function(url, obj) {
}
} else if (response.statusCode !== 200) {
log.error('[Download] Status code ' + response.statusCode + ' (' + url + ')');
if (response.statusCode == 404) {
if (response.statusCode == 404 || response.statusCode == 500) {
obj ? fulfill(obj) : fulfill();
} else {
reject(response.statusCode);
Expand Down

0 comments on commit e9cf81f

Please sign in to comment.