From fbe0e6c9a217c45c6fd43b2added86219430bdff Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 20 Oct 2016 14:41:39 -0400 Subject: [PATCH] improved error msg --- lib/ansible/playbook/role/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/role/__init__.py b/lib/ansible/playbook/role/__init__.py index 52cc12e4eaf..3e5aa7d5d4b 100644 --- a/lib/ansible/playbook/role/__init__.py +++ b/lib/ansible/playbook/role/__init__.py @@ -208,7 +208,7 @@ class Role(Base, Become, Conditional, Taggable): if self._loader.path_exists(main_file): return self._loader.load_from_file(main_file) elif main is not None: - raise AnsibleParserError("Could not find specified file in role: %s" % main) + raise AnsibleParserError("Could not find specified file in role: %s/%s" % (subdir,main)) return None def _resolve_main(self, basepath, main=None):