mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] qweb: more information in an error message
This commit is contained in:
+1
-1
@@ -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};`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user