Skip to content

Commit

Permalink
Helidon 4.x: ErrorHandlers class swallows exception object if respons…
Browse files Browse the repository at this point in the history
…e can't be reset helidon-io#8021

Signed-off-by: Jorge Bescos Gascon <[email protected]>
  • Loading branch information
jbescos committed Apr 9, 2024
1 parent 94cd025 commit cac2e36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private void handleError(ConnectionContext ctx,
if (!response.reset()) {
ctx.log(LOGGER, System.Logger.Level.WARNING, "Unable to reset response for error handler.");
throw new CloseConnectionException(
"Cannot send response of a simple handler, status and headers already written");
"Cannot send response of a simple handler, status and headers already written", e);
}
try {
it.handle(request, response, e);
Expand Down

0 comments on commit cac2e36

Please sign in to comment.