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); } }