|
|
@@ -122,7 +122,7 @@ public class UserService {
|
|
|
gitlabService.createGitlabUser(Math.toIntExact(savedUser.getId()), savedUser.getUsername(), password, savedUser.getEmail());
|
|
|
} catch (SeecoderGitlabException e) {
|
|
|
userRepository.delete(savedUser);
|
|
|
- throw new CustomErrorException("用户名或邮箱已存在,请联系管理人员!");
|
|
|
+ throw new CustomErrorException("创建gitlab账号失败,请联系管理人员!");
|
|
|
}
|
|
|
log.debug("Created Information for User: {}", savedUser);
|
|
|
return savedUser;
|
|
|
@@ -234,7 +234,7 @@ public class UserService {
|
|
|
try {
|
|
|
return gitlabService.createGitlabUser(Math.toIntExact(user.getId()), user.getUsername(), user.getPassword(), user.getEmail());
|
|
|
} catch (SeecoderGitlabException e) {
|
|
|
- throw new CustomErrorException("用户名或邮箱已存在,请联系管理人员!");
|
|
|
+ throw new CustomErrorException("创建gitlab账号失败,请联系管理人员!");
|
|
|
}
|
|
|
}
|
|
|
|