Permalink
Browse files

Fix some exceptions.

  • Loading branch information...
ndw committed Aug 15, 2014
1 parent 630a256 commit d5ca85340753e64c986f8a586f1017951519f4fa
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/com/xmlcalabash/io/FileDataStore.java
@@ -171,8 +171,7 @@ public void listEachEntry(String href, String base, String accept,
handler.list(f.toURI(), type, f.lastModified());
}
} else {
- throw new FileNotFoundException(file.getAbsolutePath()
- + " is not a directory");
+ // There's nothing to do...
}
} else {
fallback.listEachEntry(href, base, accept, handler);
@@ -193,7 +192,7 @@ public URI createList(String href, String base)
if (file.mkdirs()) {
return file.toURI();
} else {
- throw new IOException("Could not create diretory: "
+ throw new IOException("Could not create directory: "
+ file.getAbsolutePath());
}
}

0 comments on commit d5ca853

Please sign in to comment.