Skip to content

Commit

Permalink
minor logging improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed May 30, 2022
1 parent f25eed9 commit 728ce19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/template-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ var templateCompiler = function(performanceAwareCaller, templateUrlConverter, te
if (typeof html !== 'string') throw "Template system: cannot create new template " + id;
var trash = html.match(/(data)?-ko-[^ =:]*/g);
if (trash) {
console.error("ERROR: found unexpected -ko- attribute in compiled template", id, ", you probably mispelled it:", trash);
console.error("ERROR: found unexpected -ko- attribute", '('+trash[0]+')', "in compiled template", id, ", you probably mispelled it!", [ html ]);
}
templateSystem.addTemplate(id, html);
createdTemplates.push(id);
Expand Down

0 comments on commit 728ce19

Please sign in to comment.