This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new afab76ec57 Don't overwrite the initial exception with any subsequent exception afab76ec57 is described below commit afab76ec57db3140997062ff3ca99dffe2b02b09 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 354634513d..b1d88ee267 100644 --- a/java/org/apache/coyote/Response.java +++ b/java/org/apache/coyote/Response.java @@ -288,7 +288,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