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:
parent
644673bcf2
commit
94a4d45dfb
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user