mirror of
https://github.com/restic/restic.git
synced 2026-02-03 04:20:45 -05:00
rewriter: return correct error if tree iteration fails
This commit is contained in:
parent
083cdf0675
commit
ef1d525f22
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ func (t *TreeRewriter) RewriteTree(ctx context.Context, loader restic.BlobLoader
|
|||
return restic.ID{}, ctx.Err()
|
||||
}
|
||||
if item.Error != nil {
|
||||
return restic.ID{}, err
|
||||
return restic.ID{}, item.Error
|
||||
}
|
||||
node := item.Node
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue