idf.py: Fix error message for unknown target

This commit is contained in:
Sergei Silnov 2019-11-25 15:41:34 +01:00
parent 557234d625
commit dc4a5d06e3

View file

@ -41,8 +41,7 @@ def action_extensions(base_actions, project_path):
except Exception: except Exception:
raise FatalError( raise FatalError(
'command "%s" is not known to idf.py and is not a %s target' % 'command "%s" is not known to idf.py and is not a %s target' % (target_name, args.generator))
(target_name, GENERATORS[args.generator].command))
run_target(target_name, args) run_target(target_name, args)