From ffc276a6034f01749e04a352b3614e426dfd3549 Mon Sep 17 00:00:00 2001 From: Mikael Berthe Date: Thu, 10 May 2018 19:22:46 +0200 Subject: [PATCH] cat: Do not display a stack trace Don't show a stack trace when "restic cat snapshot" is invoked with invalid/nonexistent IDs. --- cmd/restic/cmd_cat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_cat.go b/cmd/restic/cmd_cat.go index 98c97a5a5..e735daf88 100644 --- a/cmd/restic/cmd_cat.go +++ b/cmd/restic/cmd_cat.go @@ -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) } } }