Return ErrorConflict

This commit is contained in:
Kegan Dougal 2020-06-16 17:14:21 +01:00
parent e6bac4a438
commit a340d9ac7b

View file

@ -46,7 +46,9 @@ func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.P
case api.ConflictUpdate:
break
case api.ConflictAbort:
return err
return &api.ErrorConflict{
Message: err.Error(),
}
}
}
res.AccountCreated = false