Skip to content

Commit

Permalink
#30 building out error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hlafaille committed Aug 15, 2024
1 parent 562e10c commit bcbd47b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public boolean accepts(HttpRequest httpRequest) throws KindlingException {
public HttpResponse handleError(Throwable t) {
log.error("An error occurred while processing a request", t);

// if a kindling exception was thrown OR we're in allowExceptionsInErrorResponse mode
// if stackTraceInErrorResponse is true
String stackTraceInErrorResponse = System.getProperty("atc.http.stackTraceInErrorResponse");
if (stackTraceInErrorResponse != null && (stackTraceInErrorResponse.equals("true"))) {
return new HttpResponse.Builder()
Expand Down

0 comments on commit bcbd47b

Please sign in to comment.