Skip to content

Commit

Permalink
Added error logging to handleException
Browse files Browse the repository at this point in the history
  • Loading branch information
bitstorm committed Aug 5, 2017
1 parent 4de2b6a commit 5900a52
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,11 @@ private Object invokeMappedMethod(Method method, List<?> parametersValues, WebRe
*/
protected void handleException(WebResponse response, Exception exception)
{
String exceptionMsg = "General server error.";

response.setStatus(500);
response.write("General server error.");
response.write(exceptionMsg);
log.error(exceptionMsg, exception);
}

/**
Expand Down

0 comments on commit 5900a52

Please sign in to comment.