From ead6dd244623ce121c9e020a887bbeb5e5334bd0 Mon Sep 17 00:00:00 2001 From: jianjun Date: Mon, 15 Jun 2020 14:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/commons/tools/utils/ScanContentUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ScanContentUtils.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ScanContentUtils.java index 52dde4192d..1db37e4042 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ScanContentUtils.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ScanContentUtils.java @@ -45,7 +45,7 @@ public class ScanContentUtils { return resultResult; } catch (Exception e) { log.debug("imgSyncScan param:{}", JSON.toJSONString(param)); - return new Result().error(EpmetErrorCode.SERVER_ERROR.getCode(), e.getMessage()); + throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), e.getMessage())); } } @@ -72,7 +72,7 @@ public class ScanContentUtils { return resultResult; } catch (Exception e) { log.error("textSyncScan exception:", e); - return new Result().error(EpmetErrorCode.SERVER_ERROR.getCode(), e.getMessage()); + throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), e.getMessage()); } }