Skip to content

Commit

Permalink
Improve the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
seberm authored and happz committed Nov 28, 2024
1 parent 99ade18 commit a38377b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmt/steps/report/junit.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ def _read_log_filter(log: Path) -> str:
except etree.XMLSyntaxError as error:
phase.verbose('rendered XML', xml_data, 'red')
raise tmt.utils.ReportError(
'The generated XML output is not a valid XML file. Use `--verbose` argument '
'to show the output.') from error
'The generated XML output is not a valid XML file (SyntaxError). Use `--verbose` '
'argument to show the output.') from error

# Do not be fooled by the `encoding` parameter: even with `utf-8`, `tostring()` will still
# return bytes. `unicode`, on the other hand, would give us a string, but then, no XML
Expand Down

0 comments on commit a38377b

Please sign in to comment.