include source file in error message
This commit is contained in:
parent
7ed67746cf
commit
d8cefee68c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue