diff --git a/lib/6to5/transformation/file.js b/lib/6to5/transformation/file.js index 57cdf6ea49..17fb4dfe87 100644 --- a/lib/6to5/transformation/file.js +++ b/lib/6to5/transformation/file.js @@ -297,7 +297,7 @@ File.prototype.isConsequenceExpressionStatement = function (node) { File.prototype.addHelper = function (name) { if (!contains(File.helpers, name)) { - throw new ReferenceError("unknown helper " + name); + throw new ReferenceError("Unknown helper " + name); } var program = this.ast.program; diff --git a/test/api.js b/test/api.js index ffa643603c..d3a2171dc6 100644 --- a/test/api.js +++ b/test/api.js @@ -17,6 +17,6 @@ suite("api", function () { var file = new File; assert.throws(function () { file.addHelper("foob"); - }, /unknown declaration foob/); + }, /Unknown helper foob/); }); });