From 093b3422ec95a5c93d281e334eab7d81e5eb49e3 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 2 Mar 2016 08:58:15 -0800 Subject: [PATCH] more information --- lib/ansible/template/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index 32f2144e0bc..5e654e9e88f 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -504,7 +504,8 @@ class Templar: ) else: debug("failing because of a type error, template data is: %s" % data) - raise AnsibleError("an unexpected type error occurred. Error was %s" % te) + import traceback + raise AnsibleError("an unexpected type error occurred. Error was %s, tracback: %s" % (te, traceback.format_exc())) if preserve_trailing_newlines: # The low level calls above do not preserve the newline