mirror of
https://github.com/restic/restic.git
synced 2024-12-27 10:17:58 +00:00
cmd/restic: fix a dropped error
This commit is contained in:
parent
644673bcf2
commit
94a4d45dfb
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue