Commit b45c902f authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

Improve error message in case of resource ID collision

Change-Id: Id4a2a9b4b20d6f6c243340159925474eacc5fe6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2558404Reviewed-by: default avatardpapad <dpapad@chromium.org>
Commit-Queue: dpapad <dpapad@chromium.org>
Auto-Submit: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830964}
parent b2f95822
...@@ -283,7 +283,10 @@ def RePackFromDataPackStrings(inputs, ...@@ -283,7 +283,10 @@ def RePackFromDataPackStrings(inputs,
# Make sure we have no dups. # Make sure we have no dups.
duplicate_keys = set(input_resources.keys()) & set(resources.keys()) duplicate_keys = set(input_resources.keys()) & set(resources.keys())
if duplicate_keys: if duplicate_keys:
raise KeyError('Duplicate keys: ' + str(list(duplicate_keys))) raise KeyError(
'Duplicate resource IDs: ' + str(list(duplicate_keys)) + '. '
'This is likely because the reserved ID ranges defined in' +
'tools/gritsettings/resource_ids.spec have been exhausted.')
# Make sure encoding is consistent. # Make sure encoding is consistent.
if encoding in (None, BINARY): if encoding in (None, BINARY):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment