Bumps the module's error statistic.
(self, category)
| 1348 | self.errors_by_category = {} |
| 1349 | |
| 1350 | def IncrementErrorCount(self, category): |
| 1351 | """Bumps the module's error statistic.""" |
| 1352 | self.error_count += 1 |
| 1353 | if self.counting in ('toplevel', 'detailed'): |
| 1354 | if self.counting != 'detailed': |
| 1355 | category = category.split('/')[0] |
| 1356 | if category not in self.errors_by_category: |
| 1357 | self.errors_by_category[category] = 0 |
| 1358 | self.errors_by_category[category] += 1 |
| 1359 | |
| 1360 | def PrintErrorCounts(self): |
| 1361 | """Print a summary of errors by category, and the total.""" |