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
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func runCat(gopts GlobalOptions, args []string) error {
// find snapshot id with prefix
id, err = restic.FindSnapshot(repo, args[1])
if err != nil {
return err
return errors.Fatalf("could not find snapshot: %v\n", err)
}
}
}