Commit 0af8ca3f by James Cammarata

Merge pull request #7126 from mscherer/better_error_message_empty_task

Give more information when a task is empty
parents e83a494e 0f0f5ff1
......@@ -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 = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment