2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

cmd/restic: fix a dropped error

This commit is contained in:
Lars Lehtonen 2020-02-10 10:36:18 -08:00
parent 644673bcf2
commit 94a4d45dfb
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -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 {