Update error

This commit is contained in:
Neil Alexander 2020-10-07 11:40:09 +01:00
parent a2342f12df
commit 994be80b7a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -244,8 +244,8 @@ func (u *latestEventsUpdater) latestState() error {
// This really shouldn't happen.
// TODO: What is ultimately the best way to handle this situation?
return fmt.Errorf(
"invalid state delta wants to remove %d state but only add %d state",
len(u.removed), len(u.added),
"invalid state delta wants to remove %d state but only add %d state (between state snapshots %d and %d)",
len(u.removed), len(u.added), u.oldStateNID, u.newStateNID,
)
}