From d8cefee68c0690f98ba15294452471a222a4fcdc Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 18 Jan 2017 22:20:46 -0500 Subject: [PATCH] include source file in error message --- lib/ansible/plugins/connection/ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/connection/ssh.py b/lib/ansible/plugins/connection/ssh.py index 799120f1e1..3ec668dc5d 100644 --- a/lib/ansible/plugins/connection/ssh.py +++ b/lib/ansible/plugins/connection/ssh.py @@ -649,8 +649,8 @@ class Connection(ConnectionBase): res = (returncode, stdout, stderr) if not success: - raise AnsibleError("failed to transfer file to {0}:\n{1}\n{2}"\ - .format(to_native(out_path), to_native(res[1]), to_native(res[2]))) + raise AnsibleError("failed to transfer file {0} to {1}:\n{2}\n{3}"\ + .format(to_native(in_path), to_native(out_path), to_native(res[1]), to_native(res[2]))) # # Main public methods