diff --git a/src/compiler/code_generator.ts b/src/compiler/code_generator.ts index a84e8bc7..4cbab34e 100644 --- a/src/compiler/code_generator.ts +++ b/src/compiler/code_generator.ts @@ -1156,7 +1156,7 @@ export class CodeGenerator { case "translate": break; default: - throw new OwlError("Invalid prop suffix"); + throw new OwlError(`Invalid prop suffix: ${suffix}`); } } name = /^[a-z_]+$/i.test(name) ? name : `'${name}'`; diff --git a/tests/components/props.test.ts b/tests/components/props.test.ts index 54030412..2611e435 100644 --- a/tests/components/props.test.ts +++ b/tests/components/props.test.ts @@ -339,7 +339,7 @@ test("throw if prop uses an unknown suffix", async () => { await expect(async () => { await mount(Parent, fixture); - }).rejects.toThrowError("Invalid prop suffix"); + }).rejects.toThrowError("Invalid prop suffix: somesuffix"); }); test(".alike suffix in a simple case", async () => {