From: markt Date: Sun, 9 Mar 2008 17:19:59 +0000 (+0000) Subject: Use localised string having gone to the bother of obtaining it. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3a85ca6b4de059b01ce968b91e484cddd6056db7;p=tomcat7.0 Use localised string having gone to the bother of obtaining it. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@635298 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/javax/servlet/http/HttpServlet.java b/java/javax/servlet/http/HttpServlet.java index 3cccddce5..7b92854d0 100644 --- a/java/javax/servlet/http/HttpServlet.java +++ b/java/javax/servlet/http/HttpServlet.java @@ -804,7 +804,7 @@ class NoBodyOutputStream extends ServletOutputStream { // isn't this really an IllegalArgumentException? String msg = lStrings.getString("err.io.negativelength"); - throw new IOException("negative length"); + throw new IOException(msg); } } }