Skip to content

Commit

Permalink
add the exception's toString() into SkipException
Browse files Browse the repository at this point in the history
  • Loading branch information
sendaoYan committed Jul 26, 2024
1 parent 9c7946f commit b3af3f8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ public void testDumpDirNotWritable() throws Exception {
try {
fs = Files.getFileStore(Paths.get("."));
} catch (IOException e) {
e.printStackTrace();
throw new SkipException("WARNING: IOException occur. Skipping testDumpDirNotWritable test.");
throw new SkipException("WARNING: IOException occurred: " + e + ", Skipping testDumpDirNotWritable test.");
}
if (!fs.supportsFileAttributeView(PosixFileAttributeView.class)) {
// No easy way to setup readonly directory without POSIX
Expand Down

0 comments on commit b3af3f8

Please sign in to comment.