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:59:57 UTC

svn commit: r280953 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/location/LocatedException.java

Author: sylvain
Date: Wed Sep 14 14:59:53 2005
New Revision: 280953

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

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

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/location/LocatedException.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/location/LocatedException.java?rev=280953&r1=280952&r2=280953&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/location/LocatedException.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/location/LocatedException.java Wed Sep 14 14:59:53 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();
     }