From 62016c676147af5c2a131e20f2c07408565f6953 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Mon, 19 Jul 2021 10:14:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD=E6=AD=A3=E5=9C=A8=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA=20--bug=3D1005192=20--user=3D?= =?UTF-8?q?=E5=88=98=E7=91=9E=E6=96=8C=20=E3=80=90=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95-=E6=8A=A5=E5=91=8A=E3=80=91=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD...=20https://www.tapd.cn/55049933/s/1025731?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/service/PerformanceReportService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java index ed388f7079..33c98fd2e3 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java @@ -329,7 +329,7 @@ public class PerformanceReportService { public void downloadJtlZip(String reportId, HttpServletResponse response) { LoadTestReportWithBLOBs report = getReport(reportId); if (StringUtils.isBlank(report.getFileId())) { - throw new RuntimeException(Translator.get("load_test_report_file_not_exist")); + MSException.throwException(Translator.get("load_test_report_file_not_exist")); } response.setHeader("Content-Disposition", "attachment;fileName=" + reportId + ".zip"); try (SqlSession sqlSession = sqlSessionFactory.openSession()) {