From 1c922135a0ff7f30de8d361f5031a0790c9afae5 Mon Sep 17 00:00:00 2001 From: Konstantin Suvorov Date: Thu, 24 Mar 2016 16:50:21 +0300 Subject: [PATCH] show error context in args splitter exception --- lib/ansible/parsing/splitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/parsing/splitter.py b/lib/ansible/parsing/splitter.py index 8f3c5cc0888..ed5ea55e818 100644 --- a/lib/ansible/parsing/splitter.py +++ b/lib/ansible/parsing/splitter.py @@ -256,6 +256,6 @@ def split_args(args): # If we're done and things are not at zero depth or we're still inside quotes, # raise an error to indicate that the args were unbalanced if print_depth or block_depth or comment_depth or inside_quotes: - raise AnsibleParserError("failed at splitting arguments, either an unbalanced jinja2 block or quotes") + raise AnsibleParserError("failed at splitting arguments, either an unbalanced jinja2 block or quotes: {}".format(args)) return params