Skip to content
Snippets Groups Projects
Commit 2bbe4710 authored by Mathew Inwood's avatar Mathew Inwood
Browse files

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
parent 43db2533
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment