Skip to content

Commit

Permalink
Test 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora committed Jan 26, 2024
1 parent e349838 commit ef90c95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/generate-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ def print_colored(text, color):

class DocGenerationError(Exception):
def __init__(self, count, inconsistencies):
self.message = f"Error: The documentation is not up to date. {count} inconsistency(ies) where found. Re running pre-commit may help. Inconstencies:{inconsistencies}"
super().__init__(f"{Colors.RED}{self.message}{Colors.RESET}")
inconsistencies_str = f"Error: The documentation is not up to date. {count} inconsistency(ies) where found. Re running pre-commit may help. Inconstencies:\n"
for i in inconsistencies:
inconsistencies_str += f"{i}\n"
# self.message = inconsistencies_str
super().__init__(f"{Colors.RED}{inconsistencies_str}{Colors.RESET}")
# for i in inconsistencies:
# print_colored(i, Colors.YELLOW)

Expand Down

0 comments on commit ef90c95

Please sign in to comment.