Skip to content

Commit e2a198b

Browse files
committed
Additional error logging
1 parent 8aae5ff commit e2a198b

File tree

1 file changed

+3
-0
lines changed
  • maven-resolver-test-http/src/main/java/org/eclipse/aether/internal/test/util/http

1 file changed

+3
-0
lines changed

maven-resolver-test-http/src/main/java/org/eclipse/aether/internal/test/util/http/HttpServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ public boolean handle(Request req, Response response, Callback callback) throws
477477
toUnmodifiableMap(req.getHeaders()); // capture request headers before other handlers modify them
478478
try {
479479
return super.handle(req, response, callback);
480+
} catch (Exception t) {
481+
LOGGER.error("Error handling request", t);
482+
throw t;
480483
} finally {
481484
// capture response headers after other handlers modified them
482485
logEntries.add(new LogEntry(

0 commit comments

Comments
 (0)