|
@@ -74,7 +74,9 @@ public class ExceptionController {
|
|
|
public Result runtimeExceptionHandler(HttpServletRequest request, BaseRuntimeException e) {
|
|
|
log.error(request.getRequestURI() + ":" + e.getMsg());
|
|
|
// by owen 2022-3-28 显示错误日志详情
|
|
|
- printErrorMsg(e);
|
|
|
+ if (e.getCode() != 0){
|
|
|
+ printErrorMsg(e);
|
|
|
+ }
|
|
|
return Result.failure(e.getCode(), e.getMsg());
|
|
|
}
|
|
|
|