异常输出

This commit is contained in:
GYJ 2025-03-11 14:44:01 +08:00
parent 41ceecfed8
commit 8c4225b2b9
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class CzgControllerAdvice {
*/ */
@ExceptionHandler(ValidateException.class) @ExceptionHandler(ValidateException.class)
public CzgResult<Object> handleValidateException(ValidateException ex) { public CzgResult<Object> handleValidateException(ValidateException ex) {
setErrorLog(ex); log.error(ex.getMessage());
return CzgResult.failure(CzgRespCode.PARAM_ERROR.getCode(), ex.getMessage()); return CzgResult.failure(CzgRespCode.PARAM_ERROR.getCode(), ex.getMessage());
} }