jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r953284 - /jackrabbit/branches/1.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockToken.java
Date Thu, 10 Jun 2010 11:36:06 GMT
Author: ckoell
Date: Thu Jun 10 11:36:05 2010
New Revision: 953284

URL: http://svn.apache.org/viewvc?rev=953284&view=rev
Log:
Minor Change on ExceptionMessage. Only for better bug search

Modified:
    jackrabbit/branches/1.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockToken.java

Modified: jackrabbit/branches/1.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockToken.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockToken.java?rev=953284&r1=953283&r2=953284&view=diff
==============================================================================
--- jackrabbit/branches/1.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockToken.java
(original)
+++ jackrabbit/branches/1.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockToken.java
Thu Jun 10 11:36:05 2010
@@ -51,11 +51,11 @@ class LockToken {
 
         int sep = s.lastIndexOf('-');
         if (sep == -1 || sep == s.length() - 1) {
-            throw new IllegalArgumentException("Separator not found.");
+            throw new IllegalArgumentException("Separator not found. Token [" + s + "]");
         }
         String uuid = s.substring(0, sep);
         if (getCheckDigit(uuid) != s.charAt(s.length() - 1)) {
-            throw new IllegalArgumentException("Bad check digit.");
+            throw new IllegalArgumentException("Bad check digit. Token [" + s + "]");
         }
         return new LockToken(NodeId.valueOf(uuid));
     }



Mime
View raw message