mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #7126 from mscherer/better_error_message_empty_task
Give more information when a task is empty
This commit is contained in:
commit
0af8ca3fee
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ class Play(object):
|
|||
included_additional_conditions = list(old_conditions)
|
||||
|
||||
if not isinstance(x, dict):
|
||||
raise errors.AnsibleError("expecting dict; got: %s" % x)
|
||||
raise errors.AnsibleError("expecting dict; got: %s, error in %s" % (x, original_file))
|
||||
|
||||
# evaluate sudo vars for current and child tasks
|
||||
included_sudo_vars = {}
|
||||
|
|
Loading…
Reference in a new issue