mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Better error message when file lookup fails (#30894)
* Alert user which debug level will show them useful details
This commit is contained in:
parent
a8b9d7f8be
commit
b2dcc9c587
1 changed files with 1 additions and 1 deletions
|
@ -123,6 +123,6 @@ class LookupBase(AnsiblePlugin):
|
||||||
result = self._loader.path_dwim_relative_stack(paths, subdir, needle)
|
result = self._loader.path_dwim_relative_stack(paths, subdir, needle)
|
||||||
except AnsibleFileNotFound:
|
except AnsibleFileNotFound:
|
||||||
if not ignore_missing:
|
if not ignore_missing:
|
||||||
self._display.warning("Unable to find '%s' in expected paths." % needle)
|
self._display.warning("Unable to find '%s' in expected paths (use -vvvvv to see paths)" % needle)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in a new issue