Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 20a46fa

Browse files
Vishwac Sena KannanVishwac Sena Kannan
authored andcommitted
Fix up error message to be more descriptive
1 parent 3e0497b commit 20a46fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/luis/src/parser/lufile/parseFileContents.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ const parseAndHandleEntityV2 = function (parsedContent, luResource, log, locale)
554554
let entityName = entity.Name.replace(/^[\'\"]|[\'\"]$/g, "");
555555
let entityType = !entity.Type ? getEntityType(entity.Name, entities) : entity.Type;
556556
if (!entityType) {
557-
let errorMsg = `No type definition found for entity "${entityName}"`;
557+
558+
let errorMsg = `No type definition found for entity "${entityName}". Supported types are ${Object.values(EntityTypeEnum).join(', ')}. Note: Type names are case sensitive.`;
558559
let error = BuildDiagnostic({
559560
message: errorMsg,
560561
context: entity.ParseTree.newEntityLine()

0 commit comments

Comments
 (0)