Clearer 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 Review URL: https://codereview.chromium.org/661433005 Cr-Commit-Position: refs/heads/master@{#302138}
Showing
Please register or sign in to comment