Bumps the module's error statistic.
(self, category)
| 1333 | self.errors_by_category = {} |
| 1334 | |
| 1335 | def IncrementErrorCount(self, category): |
| 1336 | """Bumps the module's error statistic.""" |
| 1337 | self.error_count += 1 |
| 1338 | if self.counting in ('toplevel', 'detailed'): |
| 1339 | if self.counting != 'detailed': |
| 1340 | category = category.split('/')[0] |
| 1341 | if category not in self.errors_by_category: |
| 1342 | self.errors_by_category[category] = 0 |
| 1343 | self.errors_by_category[category] += 1 |
| 1344 | |
| 1345 | def PrintErrorCounts(self): |
| 1346 | """Print a summary of errors by category, and the total.""" |