mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polish exception message
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user