Commit 5fcbfa98 by Sharif Olorin Committed by Michael DeHaan

More informative error message on failure to resolve tmpdir

parent 1a7a779e
......@@ -726,7 +726,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