Skip to content

Commit

Permalink
Use %d in the error formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Feb 19, 2024
1 parent ff499db commit 2bb1a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ func (t *Transition) RevertToSnapshot(snapshot int) error {
})

if idx == len(t.journalRevisions) || t.journalRevisions[idx].ID != snapshot {
return fmt.Errorf("journal revision id %v cannot be reverted", snapshot)
return fmt.Errorf("journal revision id %d cannot be reverted", snapshot)
}

journalIndex := t.journalRevisions[idx].Index
Expand Down

0 comments on commit 2bb1a14

Please sign in to comment.