parent
3447e1bc0a
commit
d4240811e8
|
@ -36,7 +36,7 @@ public class GlobalExceptionHandler {
|
||||||
@ExceptionHandler(Throwable.class)
|
@ExceptionHandler(Throwable.class)
|
||||||
public JsonResult<String> throwableHandler(Throwable throwable) {
|
public JsonResult<String> throwableHandler(Throwable throwable) {
|
||||||
String errorLabel = "系统错误:" + ExceptionUtil.getMessage(throwable);
|
String errorLabel = "系统错误:" + ExceptionUtil.getMessage(throwable);
|
||||||
log.error("系统错误:{}", ExceptionUtil.stacktraceToString(throwable));
|
log.error("系统错误:", throwable);
|
||||||
return JsonResult.custom(ResultCode.ERROR.getCode(), errorLabel);
|
return JsonResult.custom(ResultCode.ERROR.getCode(), errorLabel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue