diff --git a/lib/cartodb/models/dataview/formula.js b/lib/cartodb/models/dataview/formula.js index 36b5369b..b96e05b1 100644 --- a/lib/cartodb/models/dataview/formula.js +++ b/lib/cartodb/models/dataview/formula.js @@ -51,15 +51,15 @@ var TYPE = 'formula'; */ function Formula(query, options = {}, queries = {}) { if (typeof options.operation !== 'string') { - throw new Error('Formula expects `operation` in widget options'); + throw new Error(`Formula expects 'operation' in dataview options`); } if (!VALID_OPERATIONS[options.operation]) { - throw new Error("Formula does not support '" + options.operation + "' operation"); + throw new Error(`Formula does not support '${options.operation}' operation`) } if (options.operation !== 'count' && typeof options.column !== 'string') { - throw new Error('Formula expects `column` in widget options'); + throw new Error(`Formula expects 'column' in dataview options`); } BaseDataview.apply(this);