mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-14 07:12:53 +00:00
Fix panic
This commit is contained in:
parent
bab59dd1c2
commit
78a9a6de2a
1 changed files with 4 additions and 1 deletions
|
@ -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