fix(定时任务): 修复设置一个过去时刻的定时问题没有把异常信息提示出来的问题

--bug=1022623 --user=刘瑞斌 【性能测试】github#21616,性能测试定时任务cron表达式小于当前时间保存时报错 https://www.tapd.cn/55049933/s/1333145

Closes 21616
This commit is contained in:
CaptainB 2023-02-09 11:32:29 +08:00 committed by 刘瑞斌
parent adb0024570
commit fb7d1243fe
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package io.metersphere.sechedule;
import io.metersphere.base.domain.Schedule;
import io.metersphere.commons.exception.MSException;
import io.metersphere.commons.utils.LogUtil;
import org.quartz.*;
@ -81,7 +82,7 @@ public class ScheduleManager {
} catch (Exception e) {
LogUtil.error(e.getMessage(), e);
throw new RuntimeException(e);
MSException.throwException("定时任务配置异常: " + e.getMessage());
}
}