Skip to content

Commit

Permalink
Fix quality flaws
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Brandhof committed Jul 21, 2015
1 parent ef47e98 commit 853cb39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ private Path createTempFolder(Path workingPath) {
try {
Files.createDirectories(workingPath);
} catch (IOException e) {
throw new IllegalStateException("Failed to create working path: " + workingPath);
throw new IllegalStateException("Failed to create working path: " + workingPath, e);
}

try {
return Files.createTempDirectory(workingPath, TMP_NAME_PREFIX);
} catch (IOException e) {
throw new IllegalStateException("Failed to create temporary folder in " + workingPath);
throw new IllegalStateException("Failed to create temporary folder in " + workingPath, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private static Path createTempDir(Path baseDir) {
try {
return Files.createTempDirectory(baseDir, null);
} catch (IOException e) {
throw new IllegalStateException("Failed to create temp directory");
throw new IllegalStateException("Failed to create temp directory", e);
}
}

Expand Down

0 comments on commit 853cb39

Please sign in to comment.