mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 10:06:13 +00:00
FilePath.read should rethrow any FileNotFoundException, SecurityException, etc.
This commit is contained in:
1 parent
698858fd92
commit
adc218825d
1 file changed
+3
-1
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user