summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorKevin Decker <kpdecker@gmail.com>2013-02-16 14:01:31 -0800
committerKevin Decker <kpdecker@gmail.com>2013-02-16 14:01:31 -0800
commit8b2c1e5d2318b5b3dab18c2963ae430413ddc9ee (patch)
tree1774868318ee41215778b80a301a0f1a27c3075d /lib/handlebars/compiler/compiler.js
parentfa400d9dcb9fd267c0d9f8f82053ff829f1640b8 (diff)
parent261a2deb51ce5dffdbe374fa2a231c9bea108025 (diff)
downloadhandlebars.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.js2
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 || {};