summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2020-10-26 16:48:12 +0000
committerMathew Inwood <mathewi@google.com>2020-10-26 16:53:09 +0000
commit2bbe4710761b518f870500f072c8c0612c58dcaf (patch)
treec40121f213207cc7b7c104d1b742c90e8193293c /tools
parent43db2533db33dc62f8938e602d767b5ba3e87f2a (diff)
Clarify error message when signature in list.txt does not exist.
The previous error didn't really explain the problem from the users point of view. Test: modify hiddenapi-unsupported.txt and build Change-Id: I6f551343db84b20b32a963dccddf10cd08ea2be7
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hiddenapi/generate_hiddenapi_lists.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/hiddenapi/generate_hiddenapi_lists.py b/tools/hiddenapi/generate_hiddenapi_lists.py
index e4b96b1d4f5f..28ff606d0381 100755
--- a/tools/hiddenapi/generate_hiddenapi_lists.py
+++ b/tools/hiddenapi/generate_hiddenapi_lists.py
@@ -188,11 +188,10 @@ class FlagsDict:
def _check_entries_set(self, keys_subset, source):
assert isinstance(keys_subset, set)
assert keys_subset.issubset(self._dict_keyset), (
- "Error processing: {}\n"
- "The following entries were unexpected:\n"
+ "Error: {} specifies signatures not present in code:\n"
"{}"
"Please visit go/hiddenapi for more information.").format(
- source, "".join(map(lambda x: " " + str(x), keys_subset - self._dict_keyset)))
+ source, "".join(map(lambda x: " " + str(x) + "\n", keys_subset - self._dict_keyset)))
def _check_flags_set(self, flags_subset, source):
assert isinstance(flags_subset, set)