Polish exception message

This commit is contained in:
Sam Brannen
2024-10-16 17:49:57 +02:00
parent effe606b28
commit ac458be845

View File

@@ -58,8 +58,8 @@ final class TestBeanBeanOverrideHandler extends BeanOverrideHandler {
return this.factoryMethod.invoke(null);
}
catch (IllegalAccessException | InvocationTargetException ex) {
throw new IllegalStateException("Failed to invoke bean overriding method " + this.factoryMethod.getName() +
"; a static method with no formal parameters is expected", ex);
throw new IllegalStateException(
"Failed to invoke @TestBean factory method: " + this.factoryMethod, ex);
}
}