Merge pull request #2574 from alrs/fix-dropped-cmd-err

cmd/restic: fix dropped error
This commit is contained in:
rawtaz 2020-02-12 22:36:45 +01:00 committed by GitHub
commit 3679669aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,9 @@ func runStats(gopts GlobalOptions, args []string) error {
} }
err = statsWalkSnapshot(ctx, snapshot, repo, stats) err = statsWalkSnapshot(ctx, snapshot, repo, stats)
if err != nil {
return fmt.Errorf("error walking snapshot: %v", err)
}
} else { } else {
// iterate every snapshot in the repo // iterate every snapshot in the repo
err = repo.List(ctx, restic.SnapshotFile, func(snapshotID restic.ID, size int64) error { err = repo.List(ctx, restic.SnapshotFile, func(snapshotID restic.ID, size int64) error {