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 b12c557811..1f93ce3fd0 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()) {