Bumps the module's error statistic.
(self, category)
| 1477 | self.errors_by_category = {} |
| 1478 | |
| 1479 | def IncrementErrorCount(self, category): |
| 1480 | """Bumps the module's error statistic.""" |
| 1481 | self.error_count += 1 |
| 1482 | if self.counting in ("toplevel", "detailed"): |
| 1483 | if self.counting != "detailed": |
| 1484 | category = category.split("/")[0] |
| 1485 | if category not in self.errors_by_category: |
| 1486 | self.errors_by_category[category] = 0 |
| 1487 | self.errors_by_category[category] += 1 |
| 1488 | |
| 1489 | def PrintErrorCounts(self): |
| 1490 | """Print a summary of errors by category, and the total.""" |