Skip to content

Commit

Permalink
Merge pull request #65 from bhewett/master
Browse files Browse the repository at this point in the history
TFS 32875: Update Event related error messages.
  • Loading branch information
Bob Hewett committed Sep 4, 2014
2 parents 2bb5dc6 + e8f7854 commit da82acc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ public EventHandlerStatus dispatchEvent(HttpServletRequest httpRequest) {
return( new EventHandlerStatus(msg.toString(), HttpStatus.SC_UNAUTHORIZED));
}
} catch (IOException exception) {
StringBuilder msg = new StringBuilder ("Unable to read product update event: ").append(exception.getMessage());
StringBuilder msg = new StringBuilder ("Unable to read event: ").append(exception.getMessage());
logger.error(msg.toString());
return( new EventHandlerStatus(msg.toString(), HttpStatus.SC_INTERNAL_SERVER_ERROR));
}

try {
invokeHandler(event, apiContext);
} catch (Exception exception) {
StringBuilder msg = new StringBuilder ("Unable to process product update event: ").append(exception.getMessage());
StringBuilder msg = new StringBuilder ("Unable to process event with correlation id ").append(event.getCorrelationId()).append(". Message: ").append(exception.getMessage());
logger.error(msg.toString());
return( new EventHandlerStatus(msg.toString(), HttpStatus.SC_INTERNAL_SERVER_ERROR));
}
Expand Down

0 comments on commit da82acc

Please sign in to comment.