Apache Lucene open-source search software
- Added code to throw RuntimeException when output stream cannot be closed.
Otis Gospodnetic24fa693cfff1
diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.javaindex 5fd53e3e341..59843161a13 100644--- a/src/java/org/apache/lucene/store/FSDirectory.java+++ b/src/java/org/apache/lucene/store/FSDirectory.java@@ -250,7 +250,7 @@ public final class FSDirectory extends Directory {try {out.close();} catch (IOException e) {- // what can we do?+ throw new RuntimeException("could not close output stream", e);}}}