aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-07-05 15:06:10 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-07-05 15:06:10 +0100
commitc0f824d4375493127799eb3c3ecf0327838813d6 (patch)
tree85b9ebbdf457e8783e7c3f9b83c77439e7a83996
parentd4341a2d978ef9e391dd9f26cd2bf50ad1495fb2 (diff)
Wrap error from `SnapshotNIDFromEventID`
-rw-r--r--roomserver/state/state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/state/state.go b/roomserver/state/state.go
index 6c4e4b86..91f27165 100644
--- a/roomserver/state/state.go
+++ b/roomserver/state/state.go
@@ -110,7 +110,7 @@ func (v *StateResolution) LoadStateAtEvent(
snapshotNID, err := v.db.SnapshotNIDFromEventID(ctx, eventID)
if err != nil {
- return nil, fmt.Errorf("LoadStateAtEvent.SnapshotNIDFromEventID failed for event %s : %s", eventID, err)
+ return nil, fmt.Errorf("LoadStateAtEvent.SnapshotNIDFromEventID failed for event %s : %w", eventID, err)
}
if snapshotNID == 0 {
return nil, fmt.Errorf("LoadStateAtEvent.SnapshotNIDFromEventID(%s) returned 0 NID, was this event stored?", eventID)