diff --git a/dist/helpers/generic-helpers.js b/dist/helpers/generic-helpers.js index 74c1073..6dcebd7 100644 --- a/dist/helpers/generic-helpers.js +++ b/dist/helpers/generic-helpers.js @@ -484,7 +484,7 @@ Generic template helper definitions for HackMyResume / FluentCV. compare: function(lvalue, rvalue, options) { var operator, operators, result; if (arguments.length < 3) { - throw new Error("Handlerbars Helper 'compare' needs 2 parameters"); + throw new Error("Template helper 'compare' needs 2 parameters"); } operator = options.hash.operator || "=="; operators = { @@ -514,7 +514,7 @@ Generic template helper definitions for HackMyResume / FluentCV. } }; if (!operators[operator]) { - throw new Error("Handlerbars Helper 'compare' doesn't know the operator " + operator); + throw new Error("Helper 'compare' doesn't know the operator " + operator); } result = operators[operator](lvalue, rvalue); if (result) { diff --git a/src/helpers/generic-helpers.coffee b/src/helpers/generic-helpers.coffee index 15529e4..5930985 100644 --- a/src/helpers/generic-helpers.coffee +++ b/src/helpers/generic-helpers.coffee @@ -469,7 +469,7 @@ GenericHelpers = module.exports = ### compare: (lvalue, rvalue, options) -> if arguments.length < 3 - throw new Error("Handlerbars Helper 'compare' needs 2 parameters") + throw new Error "Template helper 'compare' needs 2 parameters" operator = options.hash.operator || "==" operators = '==': (l,r) -> l == r @@ -481,7 +481,7 @@ GenericHelpers = module.exports = '>=': (l,r) -> l >= r 'typeof': (l,r) -> typeof l == r if !operators[operator] - throw new Error("Handlerbars Helper 'compare' doesn't know the operator "+operator) + throw new Error("Helper 'compare' doesn't know the operator "+operator) result = operators[operator]( lvalue, rvalue ) return if result then options.fn(this) else options.inverse(this)