Improve error message when a remote repository is not found.
[lgpl/argeo-commons.git] / org.argeo.core / src / org / argeo / jackrabbit / fs / DavexFsProvider.java
index 57d348be466ca4debfb845b78ddd273fa89fcb93..9591312b09202a1d7863ca892325d97bde3a7fd1 100644 (file)
@@ -99,6 +99,8 @@ public class DavexFsProvider extends AbstractJackrabbitFsProvider {
                if (fileSystem == null)
                        try {
                                fileSystem = (JcrFileSystem) newFileSystem(uri, new HashMap<String, Object>());
+                               if(fileSystem==null)
+                                       throw new IllegalArgumentException("No file system found for "+uri);
                        } catch (IOException e) {
                                throw new JcrFsException("Could not autocreate file system", e);
                        }