mirror of
https://github.com/octoleo/restic.git
synced 2025-02-10 07:38:36 +00:00
Merge pull request #2574 from alrs/fix-dropped-cmd-err
cmd/restic: fix dropped error
This commit is contained in:
commit
3679669aae
@ -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…
x
Reference in New Issue
Block a user