Skip to content

Commit 8f08cdc

Browse files
committed
Avoid wrapping runtime exception
1 parent 63962a0 commit 8f08cdc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test-framework/junit5/src/main/java/io/quarkus/test/junit/classloading/FacadeClassLoader.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,12 @@ private QuarkusClassLoader getQuarkusClassLoader(Class<?> requiredTestClass, Cla
480480
runtimeClassLoaders.put(key, startupAction);
481481

482482
return startupAction.getClassLoader();
483+
} catch (RuntimeException e) {
484+
// Exceptions here get swallowed by the JUnit framework and we don't get any debug information unless we print it ourself
485+
e.printStackTrace();
486+
throw e;
483487
} catch (Exception e) {
484488
// Exceptions here get swallowed by the JUnit framework and we don't get any debug information unless we print it ourself
485-
// TODO what's the best way to do this?
486489
e.printStackTrace();
487490
throw new RuntimeException(e);
488491
}

0 commit comments

Comments
 (0)