2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-30 00:33:57 +00:00

cat: Do not display a stack trace

Don't show a stack trace when "restic cat snapshot" is invoked with
invalid/nonexistent IDs.
This commit is contained in:
Mikael Berthe 2018-05-10 19:22:46 +02:00
parent e42b7db008
commit ffc276a603

View File

@ -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)
} }
} }
} }