mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-31 18:53:10 -06:00
Return the correct error
This commit is contained in:
parent
ef01fca01d
commit
d8568ebc21
|
|
@ -297,8 +297,8 @@ func (r *Inputer) processRoomEvent(
|
|||
"soft_fail": softfail,
|
||||
"missing_prev": missingPrev,
|
||||
}).Warn("Stored rejected event")
|
||||
if err != nil {
|
||||
return commitTransaction, types.RejectedError(err.Error())
|
||||
if rejectionErr != nil {
|
||||
return commitTransaction, types.RejectedError(rejectionErr.Error())
|
||||
}
|
||||
return commitTransaction, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue