mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 00:01:55 -06:00
Fix panic
This commit is contained in:
parent
bab59dd1c2
commit
78a9a6de2a
|
@ -297,7 +297,10 @@ func (r *Inputer) processRoomEvent(
|
|||
"soft_fail": softfail,
|
||||
"missing_prev": missingPrev,
|
||||
}).Warn("Stored rejected event")
|
||||
return commitTransaction, types.RejectedError(rejectionErr.Error())
|
||||
if err != nil {
|
||||
return commitTransaction, types.RejectedError(err.Error())
|
||||
}
|
||||
return commitTransaction, nil
|
||||
}
|
||||
|
||||
switch input.Kind {
|
||||
|
|
Loading…
Reference in a new issue