From f4cd111cc845561aee02cc1dd95041f0167ddc7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 11 Jul 2019 16:19:30 +0200 Subject: [PATCH] [IMP] qweb: more information in an error message --- src/qweb_core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};`); }