incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1436313 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Date Mon, 21 Jan 2013 12:44:49 GMT
Author: cziegeler
Date: Mon Jan 21 12:44:48 2013
New Revision: 1436313

URL: http://svn.apache.org/viewvc?rev=1436313&view=rev
Log:
SLING-2709 :  JcrResourceProvider.delete throws PersistenceException 

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java?rev=1436313&r1=1436312&r2=1436313&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Mon Jan 21 12:44:48 2013
@@ -433,10 +433,10 @@ public class JcrResourceProvider
             if ( session.itemExists(path) ) {
                 session.getItem(path).remove();
             } else {
-                throw new PersistenceException("Unable to delete item at " + path, null,
path, null);
+                throw new PersistenceException("Unable to delete resource at " + path + ".
Resource does not exist.", null, path, null);
             }
         } catch (final RepositoryException e) {
-            throw new PersistenceException("Unable to delete item at " + path, e, path, null);
+            throw new PersistenceException("Unable to delete resource at " + path, e, path,
null);
         }
     }
 



Mime
View raw message