diff options
author | Kevin Decker <kpdecker@gmail.com> | 2013-02-16 14:01:31 -0800 |
---|---|---|
committer | Kevin Decker <kpdecker@gmail.com> | 2013-02-16 14:01:31 -0800 |
commit | 8b2c1e5d2318b5b3dab18c2963ae430413ddc9ee (patch) | |
tree | 1774868318ee41215778b80a301a0f1a27c3075d /lib/handlebars/compiler/compiler.js | |
parent | fa400d9dcb9fd267c0d9f8f82053ff829f1640b8 (diff) | |
parent | 261a2deb51ce5dffdbe374fa2a231c9bea108025 (diff) | |
download | handlebars.js-8b2c1e5d2318b5b3dab18c2963ae430413ddc9ee.zip handlebars.js-8b2c1e5d2318b5b3dab18c2963ae430413ddc9ee.tar.gz handlebars.js-8b2c1e5d2318b5b3dab18c2963ae430413ddc9ee.tar.bz2 |
Merge pull request #442 from tricknotes/fix-method-name-in-error-message
Fix method name in error message
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index b57386e..2ab1b73 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -1226,7 +1226,7 @@ JavaScriptCompiler.isValidJavaScriptVariableName = function(name) { Handlebars.precompile = function(input, options) { if (!input || (typeof input !== 'string' && input.constructor !== Handlebars.AST.ProgramNode)) { - throw new Handlebars.Exception("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input); + throw new Handlebars.Exception("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input); } options = options || {}; |