Skip to content
Browse files

add in the template name to the message

  • Loading branch information...
1 parent e8a4ebf commit 7966ca781b79c0cf1df07bff4efb5da8c71fe8ff @patmoore committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsrender.js
View
2 jsrender.js
@@ -512,7 +512,7 @@ function tmplFn( markup, tmpl, bind ) {
try {
code = new Function( "data, view, j, b, u", templateFullExpansion);
} catch (e) {
- throw new SyntaxError(e.message + ": Template has javascript syntax error when expanded:\n\t"+templateFullExpansion);
+ throw new SyntaxError((tmpl?tmpl.name+":":"")+e.message + ": Template has javascript syntax error when expanded:\n\t"+templateFullExpansion);
}
// Include only the var references that are needed in the code

0 comments on commit 7966ca7

Please sign in to comment.
Something went wrong with that request. Please try again.