You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by st...@apache.org on 2005/07/27 14:35:00 UTC
svn commit: r225501 -
/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/PropertyImpl.java
Author: stefan
Date: Wed Jul 27 05:34:57 2005
New Revision: 225501
URL: http://svn.apache.org/viewcvs?rev=225501&view=rev
Log:
improved error reporting in PropertyImpl.getValue()
Modified:
incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/PropertyImpl.java
Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/PropertyImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/PropertyImpl.java?rev=225501&r1=225500&r2=225501&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/PropertyImpl.java (original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/PropertyImpl.java Wed Jul 27 05:34:57 2005
@@ -475,8 +475,10 @@
} catch (RepositoryException e) {
throw e;
} catch (Exception e) {
- //return InternalValue.create(0).toJCRValue(session.getNamespaceResolver());
- throw new RepositoryException("Unable to get value of " + safeGetJCRPath() + ":" + e);
+ String msg = "Internal error while retrieving value of "
+ + safeGetJCRPath();
+ log.error(msg, e);
+ throw new RepositoryException(msg, e);
}
}