diff --git a/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java b/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java index 1956ddfadd69e0bf053b4433895d4a0308ec7514..e4822cfe598d44b68d29e3c1fea628e466522eeb 100644 --- a/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java +++ b/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java @@ -49,9 +49,9 @@ public class MicaExceptionTranslator { @ExceptionHandler(ServiceException.class) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) public R handleError(ServiceException e) { - log.error("业务异常", e); R result = e.getResult(); if (result == null) { + log.error("业务异常", e); // 发送:未知业务异常事件 result = R.fail(SystemCode.FAILURE, e.getMessage()); publishEvent(e);