Skip to content

Commit

Permalink
pass catched exception as cause to new one (devonfw#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille authored Sep 28, 2023
1 parent 8ac8792 commit 1aa6527
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private void unpack(Path file, Path targetDir, Function<InputStream, ArchiveInpu
move(tmpDir, targetDir);
}
} catch (IOException e) {
throw new IllegalStateException("Failed to extract " + file + " to " + targetDir);
throw new IllegalStateException("Failed to extract " + file + " to " + targetDir, e);
}
}

Expand Down

0 comments on commit 1aa6527

Please sign in to comment.