mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03: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,
|
"soft_fail": softfail,
|
||||||
"missing_prev": missingPrev,
|
"missing_prev": missingPrev,
|
||||||
}).Warn("Stored rejected event")
|
}).Warn("Stored rejected event")
|
||||||
if err != nil {
|
if rejectionErr != nil {
|
||||||
return commitTransaction, types.RejectedError(err.Error())
|
return commitTransaction, types.RejectedError(rejectionErr.Error())
|
||||||
}
|
}
|
||||||
return commitTransaction, nil
|
return commitTransaction, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue