1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 17:27:25 +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 {