FilePath.read should rethrow any FileNotFoundException, SecurityException, etc.

This commit is contained in:
Jesse Glick committed 2014-10-15 16:36:12 -04:00
1 parent 698858fd92
commit adc218825d
1 file changed
+3 -1
+3 -1
View File
@@ -1686,11 +1686,13 @@ public final class FilePath implements Serializable {
try {
fis = new FileInputStream(reading(f));
Util.copyStream(fis, p.getOut());
return null;
} catch (Exception x) {
p.error(x);
} finally {
IOUtils.closeQuietly(fis);
IOUtils.closeQuietly(p.getOut());
}
return null;
}
});