Bumps the module's error statistic.
(self, category)
| 1522 | self.errors_by_category = {} |
| 1523 | |
| 1524 | def IncrementErrorCount(self, category): |
| 1525 | """Bumps the module's error statistic.""" |
| 1526 | self.error_count += 1 |
| 1527 | if self.counting in ("toplevel", "detailed"): |
| 1528 | if self.counting != "detailed": |
| 1529 | category = category.split("/")[0] |
| 1530 | if category not in self.errors_by_category: |
| 1531 | self.errors_by_category[category] = 0 |
| 1532 | self.errors_by_category[category] += 1 |
| 1533 | |
| 1534 | def PrintErrorCounts(self): |
| 1535 | """Print a summary of errors by category, and the total.""" |