diff --git a/static/js/templates.js b/static/js/templates.js index c8138528a4..9aec67c7ff 100644 --- a/static/js/templates.js +++ b/static/js/templates.js @@ -4,13 +4,13 @@ var exports = {}; exports.render = function (name, arg) { if (Handlebars.templates === undefined) { - throw "Cannot find compiled templates!"; + throw new Error("Cannot find compiled templates!"); } if (Handlebars.templates[name] === undefined) { - throw "Cannot find a template with this name: " + name + throw new Error("Cannot find a template with this name: " + name + ". If you are developing a new feature, this likely" + "means you need to add the file static/templates/" - + name + ".handlerbars"; + + name + ".handlebars"); } // The templates should be compiled into compiled.js. In