mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 10:58:55 +00:00
Fix error message for invalid snapshot id in fsck
This commit is contained in:
parent
f5e76a0044
commit
0ac1716463
@ -100,7 +100,7 @@ func commandFsck(be backend.Server, key *khepri.Key, args []string) error {
|
|||||||
if len(args) == 1 && args[0] != "all" {
|
if len(args) == 1 && args[0] != "all" {
|
||||||
snapshotID, err := backend.FindSnapshot(be, args[0])
|
snapshotID, err := backend.FindSnapshot(be, args[0])
|
||||||
if err != nil {
|
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)
|
return fsck_snapshot(be, key, snapshotID)
|
||||||
|
Loading…
Reference in New Issue
Block a user