You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by sy...@apache.org on 2005/09/14 23:58:29 UTC

svn commit: r280952 - /cocoon/trunk/src/java/org/apache/cocoon/util/location/LocatedException.java

Author: sylvain
Date: Wed Sep 14 14:58:26 2005
New Revision: 280952

URL: http://svn.apache.org/viewcvs?rev=280952&view=rev
Log:
Ensure locations all use the same format in stack traces

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/util/location/LocatedException.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/util/location/LocatedException.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/util/location/LocatedException.java?rev=280952&r1=280951&r2=280952&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/util/location/LocatedException.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/util/location/LocatedException.java Wed Sep 14 14:58:26 2005
@@ -116,7 +116,7 @@
         // Produce a Java-like stacktrace with locations
         StringBuffer buf = message == null ? new StringBuffer() : new StringBuffer(message);
         for (int i = 0; i < locations.size(); i++) {
-            buf.append("\n\tat ").append(locations.get(i));
+            buf.append("\n\tat ").append(LocationUtils.toString((Location)locations.get(i)));
         }
         return buf.toString();
     }