diff --git a/src/qweb_core.ts b/src/qweb_core.ts index bf2ecaca..430f4153 100644 --- a/src/qweb_core.ts +++ b/src/qweb_core.ts @@ -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};`); }