Don't panic!

This commit is contained in:
Neil Alexander 2020-10-12 16:39:03 +01:00
parent bd7d1ccdfa
commit ebce38cf3f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -1008,7 +1008,7 @@ func (t *txnReq) lookupEvent(ctx context.Context, roomVersion gomatrixserverlib.
}
event, err := gomatrixserverlib.NewEventFromUntrustedJSON(pdu, roomVersion)
if err != nil {
util.GetLogger(ctx).WithError(err).Warnf("Transaction: Failed to parse event JSON of event %q", event.EventID())
util.GetLogger(ctx).WithError(err).Warnf("Transaction: Failed to parse event JSON of event")
return nil, unmarshalError{err}
}
if err = gomatrixserverlib.VerifyAllEventSignatures(ctx, []gomatrixserverlib.Event{event}, t.keys); err != nil {