From 942bf1780d7d3b63eef413b04a0e29ebb9d31869 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 1 Jul 2014 18:40:24 +0000 Subject: [PATCH] ICU-10842 Improve dependencies error message X-SVN-Rev: 35978 --- icu4c/source/test/depstest/depstest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icu4c/source/test/depstest/depstest.py b/icu4c/source/test/depstest/depstest.py index eae09f6524..8508b1d2e7 100755 --- a/icu4c/source/test/depstest/depstest.py +++ b/icu4c/source/test/depstest/depstest.py @@ -129,11 +129,11 @@ def _Resolve(name, parents): if symbol in _obj_files[file_name]["imports"]: neededFile = _symbols_to_files.get(symbol) 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: - neededItem = "(system symbol?)" - sys.stderr.write("Error: in %s %s: %s imports %s but %s does not depend on %s\n" % - (item_type, name, file_name, symbol, name, neededItem)) + neededItem = "- is this a new system symbol?" + sys.stderr.write("Error: in %s %s: %s imports %s %s\n" % + (item_type, name, file_name, symbol, neededItem)) _return_value = 1 del parents[-1] return item