DescriptionClearer error message when parsing Android XML resource fails.
Previously, when generate_v14_compatible_resources.py encountered an
invalid XML file, it showed an error message that didn't tell which
file it was processing. E.g.:
Traceback (most recent call last):
...
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
ExpatError: unbound prefix: line 6, column 0
Now it also prints the name of the file that couldn't be parsed. E.g.
Traceback (most recent call last):
...
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
ExpatError: unbound prefix: line 6, column 0
Failed to parse XML file: chrome/android/res/layout/my_layout.xml
Committed: https://crrev.com/fcd9c4769cdea951a67a4021a6d8b5f6bec79bbd
Cr-Commit-Position: refs/heads/master@{#302138}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 10 (2 generated)
|