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:
Alexander Neumann 2018-05-10 21:41:04 +02:00
commit c7b624ba0d
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)
}
}
}