Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Commit 6386876

Browse files
committed
Fix handling of ExecutionException
We should not unwrap the cause one time too many. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 3e762c3 commit 6386876

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/com/carrotsearch/junitbenchmarks/BenchmarkStatement.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ public Result evaluate() throws Throwable
256256
catch (ExecutionException e)
257257
{
258258
// Unwrap the Throwable thrown by the tested method.
259-
e.printStackTrace();
260-
throw e.getCause().getCause();
259+
throw e.getCause();
261260
}
262261
finally
263262
{

0 commit comments

Comments
 (0)