deason 1 рік тому
батько
коміт
2e11267ddd

+ 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));
         }
     }