mirror of
https://github.com/restic/restic.git
synced 2025-03-04 02:28:27 +00:00
ls: add missing error handling
This commit is contained in:
parent
c32613a624
commit
6cc06e0812
1 changed files with 3 additions and 1 deletions
|
@ -552,7 +552,9 @@ func (p *sortedPrinter) Close() error {
|
|||
slices.Reverse(p.collector)
|
||||
}
|
||||
for _, elem := range p.collector {
|
||||
_ = p.printer.Node(elem.nodepath, elem.node, false)
|
||||
if err := p.printer.Node(elem.nodepath, elem.node, false); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue