jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r591046 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
Date Thu, 01 Nov 2007 15:17:46 GMT
Author: thomasm
Date: Thu Nov  1 08:17:46 2007
New Revision: 591046

URL: http://svn.apache.org/viewvc?rev=591046&view=rev
Log:
JCR-1180: Improved error messages when the 'schema' .dll resources are not found

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java?rev=591046&r1=591045&r2=591046&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
Thu Nov  1 08:17:46 2007
@@ -416,7 +416,7 @@
             // read ddl from resources
             InputStream in = BundleDbPersistenceManager.class.getResourceAsStream(schema
+ ".ddl");
             if (in == null) {
-                String msg = "Configuration error: unknown schema '" + schema + "'";
+                String msg = "Configuration error: The resource '" + schema + ".ddl' could
not be found";
                 log.debug(msg);
                 throw new RepositoryException(msg);
             }
@@ -435,7 +435,7 @@
                     sql = reader.readLine();
                 }
             } catch (IOException e) {
-                String msg = "Configuration error: unable to read schema '" + schema + "':
" + e;
+                String msg = "Configuration error: unable to read the resource '" + schema
+ ".ddl': " + e;
                 log.debug(msg);
                 throw new RepositoryException(msg, e);
             } finally {



Mime
View raw message