mirror of
https://github.com/FabricMC/fabric.git
synced 2025-07-28 15:09:35 -04:00
Improved error handling in FabricGameTestHelper (#2693)
This commit is contained in:
parent
0efcd39b73
commit
12a01b0610
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ public final class FabricGameTestHelper {
|
|||
} catch (IllegalAccessException e) {
|
||||
throw new RuntimeException("Failed to invoke test method (%s) in (%s) because %s".formatted(method.getName(), method.getDeclaringClass().getCanonicalName(), e.getMessage()), e);
|
||||
} catch (InvocationTargetException e) {
|
||||
LOGGER.error("Exception occurred when invoking test method {} in ({})", method.getName(), method.getDeclaringClass().getCanonicalName(), e);
|
||||
|
||||
if (e.getCause() instanceof RuntimeException runtimeException) {
|
||||
throw runtimeException;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue