Skip to content

Commit

Permalink
Preserve error handling behavior for bodyless err
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeritz committed Jul 17, 2020
1 parent 32152b6 commit dbe0992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/run_action.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ function runAction(base, method, path, queryParams, bodyData, callback, numAttem
resp.statusCode = resp.status;
callback(error, resp, body);
})
.catch(callback);
.catch(function() {
callback(base._checkStatusForError(resp.status));
});
}
})
.catch(function(error) {
Expand Down

0 comments on commit dbe0992

Please sign in to comment.