Raise a CompileError with the generated messages. Render the messages suitable for displaying.
(self, use_stdout: bool = True)
| 1008 | return False |
| 1009 | |
| 1010 | def raise_error(self, use_stdout: bool = True) -> NoReturn: |
| 1011 | """Raise a CompileError with the generated messages. |
| 1012 | |
| 1013 | Render the messages suitable for displaying. |
| 1014 | """ |
| 1015 | # self.new_messages() will format all messages that haven't already |
| 1016 | # been returned from a file_messages() call. |
| 1017 | raise CompileError( |
| 1018 | self.new_messages(), use_stdout=use_stdout, module_with_blocker=self.blocker_module() |
| 1019 | ) |
| 1020 | |
| 1021 | def format_messages_default( |
| 1022 | self, error_tuples: list[ErrorTuple], source_lines: list[str] | None |