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):