Add better logging of test compile errors

This commit is contained in:
kpdecker
2014-01-06 02:45:02 -06:00
parent 7197289364
commit 607748af3b
5 changed files with 34 additions and 9 deletions
+6 -1
View File
@@ -14,5 +14,10 @@ global.CompilerContext = {
};
function safeEval(templateSpec) {
return eval('(' + templateSpec + ')');
try {
return eval('(' + templateSpec + ')');
} catch (err) {
console.error(templateSpec);
throw err;
}
}