jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r900762 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
Date Tue, 19 Jan 2010 13:11:57 GMT
Author: jukka
Date: Tue Jan 19 13:11:57 2010
New Revision: 900762

URL: http://svn.apache.org/viewvc?rev=900762&view=rev
Log:
JCR-2459: Improved error reporting from JcrUtils.getRepository

Add a helpful note suggesting that you check whether the repository is up and running if it
can not be accessed.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java?rev=900762&r1=900761&r2=900762&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
Tue Jan 19 13:11:57 2010
@@ -143,6 +143,10 @@
                 log.append(e.getMessage());
             }
         }
+        log.append(newline);
+        log.append(
+                "Perhaps the repository you are trying"
+                + " to access is not available at the moment.");
 
         // No matching repository found. Throw an exception with the
         // detailed information we gathered during the above process.



Mime
View raw message