Skip to content

Commit

Permalink
fix: snapshot error message wording (#16146)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang authored May 15, 2023
1 parent 2276629 commit 793cbe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/snapshot/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func DumpArchiveCmd() *cobra.Command {
}

if snapshot == nil {
return errors.New("snapshot don't exists")
return errors.New("snapshot doesn't exist")
}

bz, err := snapshot.Marshal()
Expand Down
2 changes: 1 addition & 1 deletion store/snapshots/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (m *Manager) RestoreLocalSnapshot(height uint64, format uint32) error {
}

if snapshot == nil {
return fmt.Errorf("snapshot don't exists, height: %d, format: %d", height, format)
return fmt.Errorf("snapshot doesn't exist, height: %d, format: %d", height, format)
}

m.mtx.Lock()
Expand Down

0 comments on commit 793cbe5

Please sign in to comment.