Skip to content

Commit

Permalink
[JENKINS-49060] Include the filename of the unreadable file in the ex…
Browse files Browse the repository at this point in the history
…ception message
  • Loading branch information
dtrebbien committed Jan 23, 2018
1 parent b550c33 commit 0f1c352
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 0f1c352

Please sign in to comment.