mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
clarified error messages
This commit is contained in:
parent
44c8195406
commit
f2e4a90c93
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ class DataLoader:
|
|||
|
||||
b_file_name = to_bytes(file_name)
|
||||
if not self.path_exists(b_file_name) or not self.is_file(b_file_name):
|
||||
raise AnsibleFileNotFound("the file_name '%s' does not exist, or is not readable" % file_name)
|
||||
raise AnsibleFileNotFound("the file named '%s' does not exist, or is not readable" % file_name)
|
||||
|
||||
show_content = True
|
||||
try:
|
||||
|
@ -391,7 +391,7 @@ class DataLoader:
|
|||
|
||||
b_file_path = to_bytes(file_path, errors='surrogate_or_strict')
|
||||
if not self.path_exists(b_file_path) or not self.is_file(b_file_path):
|
||||
raise AnsibleFileNotFound("the file_name '%s' does not exist, or is not readable" % to_native(file_path))
|
||||
raise AnsibleFileNotFound("the file named '%s' does not exist, or is not accessible" % to_native(file_path))
|
||||
|
||||
if not self._vault:
|
||||
self._vault = VaultLib(b_password="")
|
||||
|
|
Loading…
Reference in a new issue