fix: 客户端重复执行器名称,异常信息显示有误

This commit is contained in:
dhb52 2024-08-27 16:56:11 +08:00
parent ad054b8999
commit a9f387b1d7

View File

@ -22,7 +22,7 @@ public class JobExecutorRegistrar implements Lifecycle {
public void registerRetryHandler(JobExecutorInfo jobExecutorInfo) {
if (JobExecutorInfoCache.isExisted(jobExecutorInfo.getExecutorName())) {
throw new SnailJobClientException("不允许executorName重复的", jobExecutorInfo.getExecutorName());
throw new SnailJobClientException("不允许执行器名称重复: {}", jobExecutorInfo.getExecutorName());
}
JobExecutorInfoCache.put(jobExecutorInfo);