(path string, err error, isIgnored bool)
| 108 | } |
| 109 | |
| 110 | func (p *cliProgress) Error(path string, err error, isIgnored bool) { |
| 111 | if isIgnored { |
| 112 | p.ignoredErrorCount.Add(1) |
| 113 | p.output(warningColor, fmt.Sprintf("Ignored error when processing \"%v\": %v\n", path, err)) |
| 114 | } else { |
| 115 | p.fatalErrorCount.Add(1) |
| 116 | p.output(errorColor, fmt.Sprintf("Error when processing \"%v\": %v\n", path, err)) |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | func (p *cliProgress) CachedFile(_ string, numBytes int64) { |
| 121 | p.cachedBytes.Add(numBytes) |