From f4aa808b8d1ff43fa8b978eb56da052d70fe194c Mon Sep 17 00:00:00 2001 From: Jens Rantil Date: Fri, 13 Dec 2013 21:33:19 +0100 Subject: [PATCH] module(file): state what went wrong on exception --- library/files/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/files/file b/library/files/file index c68a2bcfa6..55249e62fb 100644 --- a/library/files/file +++ b/library/files/file @@ -235,7 +235,7 @@ def main(): module.exit_json(changed=True) shutil.rmtree(path, ignore_errors=False) except Exception, e: - module.exit_json(msg="rmtree failed") + module.exit_json(msg="rmtree failed: %s" % str(e)) else: if module.check_mode: module.exit_json(changed=True)