From c8e1ac4049c69a46caf787f8d4f16087bf449aa5 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 23 May 2022 22:38:45 +0200 Subject: [PATCH] prune: Don't print stack trace if snapshot can't be loaded --- cmd/restic/cmd_prune.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index d20d36544..9664283ec 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -605,7 +605,7 @@ func getUsedBlobs(gopts GlobalOptions, repo restic.Repository, ignoreSnapshots r return nil }) if err != nil { - return nil, err + return nil, errors.Fatalf("failed loading snapshot: %v", err) } Verbosef("finding data that is still in use for %d snapshots\n", len(snapshotTrees))