mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Adjust error message in the thrown exception
This commit is contained in:
parent
578d51c7da
commit
d9982c6143
@ -149,8 +149,8 @@ public class SentinelBeanPostProcessor implements MergedBeanDefinitionPostProces
|
||||
beanName, standardReturnType.getName(), blockClass.getName(),
|
||||
blockMethod, argsStr);
|
||||
throw new IllegalArgumentException(type + " method return value in bean["
|
||||
+ beanName + "] is not ClientHttpResponse: " + blockClass.getName()
|
||||
+ "#" + blockMethod + argsStr);
|
||||
+ beanName + "] is not " + standardReturnType.getName() + ": "
|
||||
+ blockClass.getName() + "#" + blockMethod + argsStr);
|
||||
}
|
||||
if (type.equals(SentinelConstants.BLOCK_TYPE)) {
|
||||
BlockClassRegistry.updateBlockHandlerFor(blockClass, blockMethod,
|
||||
|
Loading…
x
Reference in New Issue
Block a user