Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: snapshot error message wording #16146

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: snapshot error message wording
  • Loading branch information
yihuang committed May 15, 2023
commit 64154509beb2c4e1ea9000d7869a73a8a738b97d
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