[IMP] qweb: more information in an error message

This commit is contained in:
Géry Debongnie
2019-07-11 16:19:30 +02:00
parent ea015af741
commit f4cd111cc8
+1 -1
View File
@@ -330,7 +330,7 @@ export class QWeb extends EventBus {
if (!parentContext) {
if (!ctx.rootNode) {
throw new Error("A template should have one root node");
throw new Error(`A template should have one root node (${ctx.templateName})`);
}
ctx.addLine(`return vn${ctx.rootNode};`);
}