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