mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 13:53:09 -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:
|
case api.ConflictUpdate:
|
||||||
break
|
break
|
||||||
case api.ConflictAbort:
|
case api.ConflictAbort:
|
||||||
return err
|
return &api.ErrorConflict{
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
res.AccountCreated = false
|
res.AccountCreated = false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue