Be less verbose when building help PO file
When building help using a PO file with syntax error, the output log has traceback and all printed in the error banner. Its verbosity looks kinda scary, and the interesting part is in the end: the actually problematic line and text.
It would be awesome to have it reduced to the interesting part
Example of text in the error banner:
Build failed (itstool): Traceback (most recent call last): File "/usr/bin/itstool", line 1647, in doc.merge_translations(translations, opts.lang, strict=opts.strict) File "/usr/bin/itstool", line 992, in merge_translations self.merge_translations(translations, language, node=child, strict=strict) File "/usr/bin/itstool", line 994, in merge_translations newnode = self.get_translated(node, translations, strict=strict, lang=language) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/itstool", line 1088, in get_translated self._check_errors() File "/usr/bin/itstool", line 577, in _check_errors raise libxml2.parserError(self._xml_err) libxml2.parserError: Entity: line 1: parser error : Opening and ending tag mismatch: p line 1 and link link> e href="https://gitlab.gnome.org/GNOME/gnome-sudoku/issues">procure ^ Entity: line 1: parser error : Extra content at the end of the document ink> e href="https://gitlab.gnome.org/GNOME/gnome-sudoku/issues">procure ^