Fix error message for invalid snapshot id in `fsck`

This commit is contained in:
Alexander Neumann 2014-11-30 22:49:41 +01:00
parent f5e76a0044
commit 0ac1716463
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func commandFsck(be backend.Server, key *khepri.Key, args []string) error {
if len(args) == 1 && args[0] != "all" {
snapshotID, err := backend.FindSnapshot(be, args[0])
if err != nil {
return fmt.Errorf("invalid id %q: %v", args[1], err)
return fmt.Errorf("invalid id %q: %v", args[0], err)
}
return fsck_snapshot(be, key, snapshotID)