Skip to content

Commit

Permalink
Merge pull request #183 from mattrjacobs/bad-request-exception-handling
Browse files Browse the repository at this point in the history
Bugfix to HystrixBadRequestException handling
  • Loading branch information
benjchristensen committed Sep 27, 2013
2 parents e8573a1 + e6403c4 commit d5a19eb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1264,11 +1264,10 @@ private R executeCommand() {
if (decorated instanceof HystrixBadRequestException) {
e = (HystrixBadRequestException) decorated;
} else {
logger.warn("ExecutionHook.endRunFailure returned an exception that was not an instance of HystrixBadRequestException so will be ignored.", decorated);
logger.warn("ExecutionHook.onRunError returned an exception that was not an instance of HystrixBadRequestException so will be ignored.", decorated);
}
throw e;
} catch (Exception hookException) {
logger.warn("Error calling ExecutionHook.endRunFailure", hookException);
logger.warn("Error calling ExecutionHook.onRunError", hookException);
}

/*
Expand Down

0 comments on commit d5a19eb

Please sign in to comment.