正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -172,7 +172,7 @@ func (userService *UserService) CreateCooperator(createCooperatorCommand *comman | @@ -172,7 +172,7 @@ func (userService *UserService) CreateCooperator(createCooperatorCommand *comman | ||
172 | "transactionContext": transactionContext, | 172 | "transactionContext": transactionContext, |
173 | }) | 173 | }) |
174 | if user, err = createUserService.CreateUser(nil, newUser, createCooperatorCommand.Password); err != nil { | 174 | if user, err = createUserService.CreateUser(nil, newUser, createCooperatorCommand.Password); err != nil { |
175 | - return nil, err | 175 | + return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
176 | } | 176 | } |
177 | userDto := &dto.UserDto{} | 177 | userDto := &dto.UserDto{} |
178 | if err := userDto.LoadDto(user, nil); err != nil { | 178 | if err := userDto.LoadDto(user, nil); err != nil { |
-
请 注册 或 登录 后发表评论