This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 2f876d2997 Don't overwrite the initial exception with any subsequent exception 2f876d2997 is described below commit 2f876d29974b79fdf5740470bca60a5678b177ea Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Feb 29 09:03:42 2024 +0000 Don't overwrite the initial exception with any subsequent exception --- java/org/apache/coyote/Response.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/org/apache/coyote/Response.java b/java/org/apache/coyote/Response.java index e1bed1c4e0..4af1c8a4c7 100644 --- a/java/org/apache/coyote/Response.java +++ b/java/org/apache/coyote/Response.java @@ -278,7 +278,9 @@ public final class Response { * @param ex The exception that occurred */ public void setErrorException(Exception ex) { - errorException = ex; + if (errorException == null) { + errorException = ex; + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org