ICU-10842 Improve dependencies error message

X-SVN-Rev: 35978
This commit is contained in:
Steven R. Loomis 2014-07-01 18:40:24 +00:00
parent ef42fc3a34
commit 942bf1780d

View File

@ -129,11 +129,11 @@ def _Resolve(name, parents):
if symbol in _obj_files[file_name]["imports"]: if symbol in _obj_files[file_name]["imports"]:
neededFile = _symbols_to_files.get(symbol) neededFile = _symbols_to_files.get(symbol)
if neededFile: if neededFile:
neededItem = "%s (for %s)" % (dependencies.file_to_item[neededFile], neededFile) neededItem = "but %s does not depend on %s (for %s)" % (name, dependencies.file_to_item[neededFile], neededFile)
else: else:
neededItem = "(system symbol?)" neededItem = "- is this a new system symbol?"
sys.stderr.write("Error: in %s %s: %s imports %s but %s does not depend on %s\n" % sys.stderr.write("Error: in %s %s: %s imports %s %s\n" %
(item_type, name, file_name, symbol, name, neededItem)) (item_type, name, file_name, symbol, neededItem))
_return_value = 1 _return_value = 1
del parents[-1] del parents[-1]
return item return item