mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 09:43:15 +00:00
improved error msg
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user