From e4d92ecf9f944af4af4b1286b3ab2b8b249de7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 5 Nov 2024 12:07:28 -0300 Subject: [PATCH] Tools: ardupilotwaf: Print list of possible groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- Tools/ardupilotwaf/ardupilotwaf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Tools/ardupilotwaf/ardupilotwaf.py b/Tools/ardupilotwaf/ardupilotwaf.py index 36a352bfa7..1c28dedc5f 100644 --- a/Tools/ardupilotwaf/ardupilotwaf.py +++ b/Tools/ardupilotwaf/ardupilotwaf.py @@ -620,13 +620,14 @@ def _select_programs_from_group(bld): else: groups = ['bin'] + possible_groups = list(_grouped_programs.keys()) + possible_groups.remove('bin') # Remove `bin` so as not to duplicate all items in bin if 'all' in groups: - groups = list(_grouped_programs.keys()) - groups.remove('bin') # Remove `bin` so as not to duplicate all items in bin + groups = possible_groups for group in groups: if group not in _grouped_programs: - bld.fatal('Group %s not found' % group) + bld.fatal(f'Group {group} not found, possible groups: {possible_groups}') target_names = _grouped_programs[group].keys()