mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +00:00
archiver: Add error reporting for directories
When an error occurred while walking a directory, this error wasn't reported to the user before.
This commit is contained in:
parent
57a24b2cdf
commit
6a5b022939
@ -350,6 +350,7 @@ func (arch *Archiver) dirWorker(wg *sync.WaitGroup, p *Progress, done <-chan str
|
|||||||
|
|
||||||
// ignore dir nodes with errors
|
// ignore dir nodes with errors
|
||||||
if dir.Error() != nil {
|
if dir.Error() != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "error walking dir %v: %v\n", dir.Path(), dir.Error())
|
||||||
dir.Result() <- nil
|
dir.Result() <- nil
|
||||||
p.Report(Stat{Errors: 1})
|
p.Report(Stat{Errors: 1})
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user