Improve ACR
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / MountManager.java
index 8cb90893637b91ebd63dbb2b8db441c389384d46..36b0cfe5ed051f05a129f40864b2ef4f05380001 100644 (file)
@@ -48,9 +48,11 @@ class MountManager {
        }
 
        synchronized ContentProvider findContentProvider(String path) {
+//             if (ContentUtils.EMPTY.equals(path))
+//                     return partitions.firstEntry().getValue();
                Map.Entry<String, ContentProvider> entry = partitions.floorEntry(path);
                if (entry == null)
-                       throw new IllegalArgumentException("No entry provider found for " + path);
+                       throw new IllegalArgumentException("No entry provider found for path '" + path + "'");
                String mountPath = entry.getKey();
                if (!path.startsWith(mountPath)) {
                        // FIXME make it more robust and find when there is no content provider