设备接入出现异常时 返回具体错误提示

This commit is contained in:
guofeihu
2024-06-13 11:12:03 +08:00
parent 4ce70bc5ff
commit 563163a5af

View File

@@ -419,7 +419,7 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
logDto.setResult(0);
logDto.setFailReason(e.getMessage());
csLogsFeignClient.addUserLog(logDto);
throw new BusinessException(CommonResponseEnum.FAIL);
throw new BusinessException(e.getMessage());
}
return "success";
} catch (BusinessException e) {