diff --git a/src/run_action.ts b/src/run_action.ts index 4c890a7e..d94259f1 100644 --- a/src/run_action.ts +++ b/src/run_action.ts @@ -86,8 +86,8 @@ function runAction( r.statusCode = resp.status; callback(error, r, body); }) - .catch(function() { - callback(base._checkStatusForError(resp.status)); + .catch(function(e) { + callback(base._checkStatusForError(resp.status) || e); }); } })