mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 13:23:22 -06:00
Return ErrorConflict
This commit is contained in:
parent
e6bac4a438
commit
a340d9ac7b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue