From 4ce90294205eecb1c367fe54790ea23ae8e8f318 Mon Sep 17 00:00:00 2001 From: Sahab Yazdani Date: Wed, 27 Apr 2011 15:44:18 -0400 Subject: [PATCH] Make exception a little more user friendly. --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index a892a48..0c51b74 100644 --- a/mustache.js +++ b/mustache.js @@ -543,7 +543,7 @@ var Mustache = (function(undefined) { delete state.section; state.parser = default_parser; } else { - throw new Error('Unexpected section end tag. Expected: ' + state.section.variable); + throw new Error('Unexpected section end tag "' + variable + '". Expected: ' + state.section.variable); } }