mirror of
https://github.com/restic/restic.git
synced 2025-08-23 10:58:49 +00:00
Merge pull request #1769 from McKael/cat_snapshot_stacktrace
cat snapshot: Do not display a stack trace with invalid IDs
This commit is contained in:
@@ -58,7 +58,7 @@ func runCat(gopts GlobalOptions, args []string) error {
|
|||||||
// find snapshot id with prefix
|
// find snapshot id with prefix
|
||||||
id, err = restic.FindSnapshot(repo, args[1])
|
id, err = restic.FindSnapshot(repo, args[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return errors.Fatalf("could not find snapshot: %v\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user