From 89a21efd431974a124812867b74e8c203b6bcb68 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 9 Apr 2024 17:06:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E8=BD=AC=E5=AD=98=EF=BC=8C=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1038827 --user=王旭 【用例管理】创建用例-上传相同附件,点击转存,提示信息中带异常信息 https://www.tapd.cn/55049933/s/1491787 --- .../controller/FunctionalCaseAttachmentController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java index 0e230dc66d..1ebdc1c3ef 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalCaseAttachmentController.java @@ -140,7 +140,7 @@ public class FunctionalCaseAttachmentController { fileId = fileAssociationService.transferAndAssociation(fileAssociationDTO); functionalCaseAttachmentService.deleteCaseAttachment(Arrays.asList(request.getFileId()), request.getCaseId(), request.getProjectId()); } catch (MSException e) { - throw new MSException(e); + throw new MSException(e.getMessage()); } catch (Exception e) { throw new MSException(Translator.get("file.transfer.failed")); }