diff --git a/gwp.go b/gwp.go index 8d459c1..dea1a3d 100644 --- a/gwp.go +++ b/gwp.go @@ -115,3 +115,8 @@ func (workerPool *WorkerPool) CloseAndWait() { workerPool.printProgress() } + +// ErrorCount returns total error count +func (workerPool *WorkerPool) ErrorCount() int { + return workerPool.errorCount +}