summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorRyunosuke SATO <tricknotes.rs@gmail.com>2013-02-16 20:14:38 +0900
committerRyunosuke SATO <tricknotes.rs@gmail.com>2013-02-16 20:14:38 +0900
commit261a2deb51ce5dffdbe374fa2a231c9bea108025 (patch)
treea3e60848590e2eabf7ae49fead9c3c4167ad194c /lib/handlebars/compiler/compiler.js
parent75a4f0d9317709e00f5c84b6b9d8cc4241f26d84 (diff)
downloadhandlebars.js-261a2deb51ce5dffdbe374fa2a231c9bea108025.zip
handlebars.js-261a2deb51ce5dffdbe374fa2a231c9bea108025.tar.gz
handlebars.js-261a2deb51ce5dffdbe374fa2a231c9bea108025.tar.bz2
Fix method name in error message
- compile -> precompile
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 8400804..0260a41 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -1229,7 +1229,7 @@ Handlebars.JavaScriptCompiler = function() {};
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 || {};