fix: 客户端重复执行器名称,异常信息显示有误
This commit is contained in:
parent
ad054b8999
commit
a9f387b1d7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user