Add issue tracker link to compiler bug message

This commit is contained in:
James Westman 2021-10-23 12:34:49 -05:00
parent bef92f2879
commit b00401d53f
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -27,6 +27,8 @@ class _colors:
YELLOW = '\033[33m' YELLOW = '\033[33m'
FAINT = '\033[2m' FAINT = '\033[2m'
BOLD = '\033[1m' BOLD = '\033[1m'
BLUE = '\033[34m'
UNDERLINE = '\033[4m'
CLEAR = '\033[0m' CLEAR = '\033[0m'
class PrintableError(Exception): class PrintableError(Exception):
@ -122,6 +124,8 @@ def report_compile_error():
print(traceback.format_exc()) print(traceback.format_exc())
print(f"Arguments: {sys.argv}\n") print(f"Arguments: {sys.argv}\n")
print(f"""{_colors.BOLD}{_colors.RED}***** COMPILER BUG ***** print(f"""{_colors.BOLD}{_colors.RED}***** COMPILER BUG *****
The gtk-blueprint-tool program has crashed. Please report the above stacktrace The gtk-blueprint-tool program has crashed. Please report the above stacktrace,
to the maintainers, along with the input file(s) if possible.{_colors.CLEAR}""") along with the input file(s) if possible, on GitLab:
{_colors.BOLD}{_colors.BLUE}{_colors.UNDERLINE}https://gitlab.gnome.org/jwestman/gtk-blueprint-tool/-/issues/new?issue
{_colors.CLEAR}""")