2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 02:48:55 +00:00

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

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)