From 3a85ca6b4de059b01ce968b91e484cddd6056db7 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 9 Mar 2008 17:19:59 +0000 Subject: [PATCH] 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 --- java/javax/servlet/http/HttpServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } } -- 2.11.0