Commit 690048c7 by Sharif Olorin

More informative error message on failure to resolve tmpdir

parent d21224a7
......@@ -707,7 +707,9 @@ class Runner(object):
# Catch any other failure conditions here; files should never be
# written directly to /.
if rc == '/':
raise errors.AnsibleError('refusing to use / as a temporary directory.')
raise errors.AnsibleError('failed to resolve remote temporary '
'directory from %s: `%s` returned '
'empty string' % (basetmp, cmd))
return rc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment