Unverified Commit 2172a194 authored by gaoyan's avatar gaoyan Committed by GitHub

fix BusException logic error (#2027)

if BusException.msg is empty, use I18n message
parent 7f8302c2
...@@ -61,7 +61,7 @@ public class WebExceptionHandler { ...@@ -61,7 +61,7 @@ public class WebExceptionHandler {
@ExceptionHandler @ExceptionHandler
public Result<Void> busException(BusException e) { public Result<Void> busException(BusException e) {
if (StrUtil.isNotEmpty(e.getMsg())) { if (StrUtil.isEmpty(e.getMsg())) {
return Result.failed(I18nMsgUtils.getMsg(e.getCode(), e.getErrorArgs())); return Result.failed(I18nMsgUtils.getMsg(e.getCode(), e.getErrorArgs()));
} }
return Result.failed(e.getMsg()); return Result.failed(e.getMsg());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment