Skip to content

Commit

Permalink
Improve the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
seberm committed Nov 27, 2024
1 parent 4b5bc05 commit cbdb31c
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 cbdb31c

Please sign in to comment.