Skip to content

Commit

Permalink
Merge pull request #3255 from dtrebbien/JENKINS-49060-include-filenam…
Browse files Browse the repository at this point in the history
…e-of-unreadable-file

[JENKINS-49060] Include the filename of the unreadable file in the exception message
  • Loading branch information
oleg-nenashev committed Jan 28, 2018
2 parents 839b003 + 0f1c352 commit 66bb3dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/hudson/util/TextFile.java
Expand Up @@ -75,6 +75,8 @@ public String read() throws IOException {
String line;
while ((line = in.readLine()) != null)
w.println(line);
} catch (Exception e) {
throw new IOException("Failed to fully read " + file, e);
}
return out.toString();
}
Expand Down

0 comments on commit 66bb3dc

Please sign in to comment.