Skip to content

Commit d7da694

Browse files
committed
[java] Printing stack trace to console instead of trowing in finally block
It's a sample executable utility so printing to the console is acceptable. Throwing from a finally block hides the original exception if there were one.
1 parent b396c16 commit d7da694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/tools/javadoc/JavadocJarMaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static void main(String[] args) throws IOException {
169169
.map(Path::toFile)
170170
.forEach(File::delete);
171171
} catch (IOException e) {
172-
throw new UncheckedIOException(e);
172+
e.printStackTrace();
173173
}
174174
});
175175
}

0 commit comments

Comments
 (0)