deason 1 년 전
부모
커밋
2e11267ddd
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main/java/cn/com/qmth/examcloud/tool/service/config_exam_paper/ConfigExamPaperTask.java

+ 3 - 1
src/main/java/cn/com/qmth/examcloud/tool/service/config_exam_paper/ConfigExamPaperTask.java

@@ -75,7 +75,9 @@ public class ConfigExamPaperTask {
         }
 
         if (!errors.isEmpty()) {
-            throw new RuntimeException(StringUtils.join(errors, " "));
+            // throw new RuntimeException(StringUtils.join(errors, " "));
+            log.error(StringUtils.join(errors, " "));
+            throw new RuntimeException(errors.get(0));
         }
     }