|
|
@@ -36,7 +36,7 @@ public class UserErrorDecoder implements ErrorDecoder {
|
|
|
exception = new RuntimeException(json);
|
|
|
// 这里只封装4开头的请求异常ß && response.status() < 500
|
|
|
if (HTTP_STATUS_400 <= response.status()) {
|
|
|
- exception = new HystrixBadRequestException("请求参数错误:"+Util.toString(response.body().asReader()), exception);
|
|
|
+ exception = new HystrixBadRequestException("请求参数错误:" + json, exception);
|
|
|
} else {
|
|
|
logger.error(exception.getMessage(), exception);
|
|
|
}
|