diff options
author | Simon Warta <[email protected]> | 2017-04-30 00:20:23 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-04-30 00:20:23 +0200 |
commit | 866e24e8d20c2ff726d4fb4b1d6b591830f20139 (patch) | |
tree | 5ec29272d8d2ece1cbbb0d189d20d341ff6a86ce /configure.py | |
parent | 7873dd06cdab8b10e03a94bf197f02c4a28428f1 (diff) |
Improve debugging in ModulesChooser._validate_state
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 08f1bdc83..0dced7a07 100755 --- a/configure.py +++ b/configure.py @@ -2033,9 +2033,11 @@ class ModulesChooser(object): @staticmethod def _validate_state(used_modules, unused_modules): for reason, unused_for_reason in unused_modules.items(): - if not unused_for_reason.isdisjoint(used_modules): + intersection = unused_for_reason & used_modules + if intersection: raise InternalError( - "Disabled modules (%s) and modules to load have common elements" % reason) + "Disabled modules (%s) and modules to load have common elements: %s" + % (reason, intersection)) @staticmethod def _validate_dependencies_exist(modules): |