From 94a4d45dfbed2f247eda374bb0f09c875e0c81fe Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 10 Feb 2020 10:36:18 -0800 Subject: [PATCH] cmd/restic: fix a dropped error --- cmd/restic/cmd_stats.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/restic/cmd_stats.go b/cmd/restic/cmd_stats.go index 709b20ec8..cc2aa4ce8 100644 --- a/cmd/restic/cmd_stats.go +++ b/cmd/restic/cmd_stats.go @@ -112,6 +112,9 @@ func runStats(gopts GlobalOptions, args []string) error { } err = statsWalkSnapshot(ctx, snapshot, repo, stats) + if err != nil { + return fmt.Errorf("error walking snapshot: %v", err) + } } else { // iterate every snapshot in the repo err = repo.List(ctx, restic.SnapshotFile, func(snapshotID restic.ID, size int64) error {