From f45476cad5d954fb4d5eaab08ae6f5dffe004ff1 Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Wed, 24 Jul 2024 15:08:37 +0800 Subject: [PATCH] update error message according to review comments --- packages/typespec-client-generator-core/src/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typespec-client-generator-core/src/lib.ts b/packages/typespec-client-generator-core/src/lib.ts index 178e82742f..0d49d586d3 100644 --- a/packages/typespec-client-generator-core/src/lib.ts +++ b/packages/typespec-client-generator-core/src/lib.ts @@ -169,7 +169,7 @@ export const $lib = createTypeSpecLibrary({ "flatten-polymorphism": { severity: "error", messages: { - default: `Flattening polymorphic types is not supported.`, + default: `Cannot flatten property of polymorphic type.`, }, }, },