From f2e4a90c931b2aa72ca338b67340407edfabe6b9 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 24 May 2017 11:49:57 -0400 Subject: [PATCH] clarified error messages --- lib/ansible/parsing/dataloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/parsing/dataloader.py b/lib/ansible/parsing/dataloader.py index 183bd4d868..db161f8347 100644 --- a/lib/ansible/parsing/dataloader.py +++ b/lib/ansible/parsing/dataloader.py @@ -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="")