Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Issue 661433005: Clearer error message when parsing Android XML resource fails. (Closed)

Created:
6 years, 1 month ago by newt (away)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/fcd9c4769cdea951a67a4021a6d8b5f6bec79bbd Cr-Commit-Position: refs/heads/master@{#302138}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M build/android/gyp/generate_v14_compatible_resources.py View 6 chunks +15 lines, -5 lines 2 comments Download

Messages

Total messages: 10 (2 generated)
newt (away)
PTAL
6 years, 1 month ago (2014-10-30 06:49:15 UTC) #2
Kibeom Kim (inactive)
lgtm Thanks for doing this! https://codereview.chromium.org/661433005/diff/1/build/android/gyp/generate_v14_compatible_resources.py File build/android/gyp/generate_v14_compatible_resources.py (right): https://codereview.chromium.org/661433005/diff/1/build/android/gyp/generate_v14_compatible_resources.py#newcode73 build/android/gyp/generate_v14_compatible_resources.py:73: traceback.print_exc() Just a question: ...
6 years, 1 month ago (2014-10-30 07:07:39 UTC) #3
Kibeom Kim (inactive)
https://codereview.chromium.org/661433005/diff/1/build/android/gyp/generate_v14_compatible_resources.py File build/android/gyp/generate_v14_compatible_resources.py (right): https://codereview.chromium.org/661433005/diff/1/build/android/gyp/generate_v14_compatible_resources.py#newcode73 build/android/gyp/generate_v14_compatible_resources.py:73: traceback.print_exc() On 2014/10/30 07:07:39, Kibeom Kim wrote: > Just ...
6 years, 1 month ago (2014-10-30 07:10:44 UTC) #4
newt (away)
On 2014/10/30 07:10:44, Kibeom Kim wrote: > https://codereview.chromium.org/661433005/diff/1/build/android/gyp/generate_v14_compatible_resources.py > File build/android/gyp/generate_v14_compatible_resources.py (right): > > https://codereview.chromium.org/661433005/diff/1/build/android/gyp/generate_v14_compatible_resources.py#newcode73 ...
6 years, 1 month ago (2014-10-30 16:22:17 UTC) #5
Kibeom Kim (inactive)
On 2014/10/30 16:22:17, newt wrote: > On 2014/10/30 07:10:44, Kibeom Kim wrote: > > > ...
6 years, 1 month ago (2014-10-30 18:01:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/661433005/1
6 years, 1 month ago (2014-10-30 18:50:48 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-30 19:56:06 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 19:57:05 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fcd9c4769cdea951a67a4021a6d8b5f6bec79bbd
Cr-Commit-Position: refs/heads/master@{#302138}

Powered by Google App Engine
This is Rietveld 408576698