mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] props_validation: have clearer error messages
With this commit, props validation error messages will include a more developer-friendly error message, avoiding the need to investigate in the Developer Tools why a complex props structure is invalid.
This commit is contained in:
committed by
Géry Debongnie
parent
c06049076a
commit
940ac64340
@@ -78,7 +78,9 @@ describe("Portal: Props validation", () => {
|
||||
error = e;
|
||||
}
|
||||
expect(error).toBeDefined();
|
||||
expect(error.message).toBe(`Invalid Prop 'target' in component 'Portal'`);
|
||||
expect(error.message).toBe(
|
||||
"Invalid Prop 'target' in component 'Portal': target is not an instance of String"
|
||||
);
|
||||
|
||||
QWeb.dev = dev;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user