Merge pull request #143 from fw42/count_errors

Count errors separately and not as files that are "done"
This commit is contained in:
Alexander Neumann committed 2015-04-26 12:05:09 +02:00
commit 434c79354e
3 files changed
+15 -12

No files matched your search

+3 -3
View File
@@ -403,7 +403,7 @@ func (arch *Archiver) fileWorker(wg *sync.WaitGroup, p *Progress, done <-chan st
fmt.Fprintf(os.Stderr, "error for %v: %v\n", e.Path(), e.Error())
// ignore this file
e.Result() <- nil
p.Report(Stat{Files: 1})
p.Report(Stat{Errors: 1})
continue
}
@@ -412,7 +412,7 @@ func (arch *Archiver) fileWorker(wg *sync.WaitGroup, p *Progress, done <-chan st
// TODO: integrate error reporting
debug.Log("Archiver.fileWorker", "NodeFromFileInfo returned error for %v: %v", node.path, err)
e.Result() <- nil
p.Report(Stat{Files: 1})
p.Report(Stat{Errors: 1})
continue
}
@@ -449,7 +449,7 @@ func (arch *Archiver) fileWorker(wg *sync.WaitGroup, p *Progress, done <-chan st
fmt.Fprintf(os.Stderr, "error for %v: %v\n", node.path, err)
// ignore this file
e.Result() <- nil
p.Report(Stat{Files: 1})
p.Report(Stat{Errors: 1})
continue
}
} else {