From 4e72562d2a683b3c0af6cf6f39692b75109398bc Mon Sep 17 00:00:00 2001 From: delphes99 Date: Fri, 10 May 2024 16:03:26 +0200 Subject: [PATCH] Annotation-generator : fix error message for missing type property --- .../generateBuilderProcessor/GenerateBuilderProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annotation-generator/src/main/kotlin/fr/delphes/generation/outgoingEvent/generateBuilderProcessor/GenerateBuilderProcessor.kt b/annotation-generator/src/main/kotlin/fr/delphes/generation/outgoingEvent/generateBuilderProcessor/GenerateBuilderProcessor.kt index 25898499..be06bc87 100644 --- a/annotation-generator/src/main/kotlin/fr/delphes/generation/outgoingEvent/generateBuilderProcessor/GenerateBuilderProcessor.kt +++ b/annotation-generator/src/main/kotlin/fr/delphes/generation/outgoingEvent/generateBuilderProcessor/GenerateBuilderProcessor.kt @@ -168,7 +168,7 @@ class GenerateOutgoingEventBuilderModuleProcessor( private fun checkNoTypeField(outgoingEventClass: KSClassDeclaration) { if (!outgoingEventClass.getDescriptionFields().none { it.simpleName.asString() == "type" }) { - throw CompilationCheckException("${outgoingEventClass.qualifiedName?.asString()} must no have a field named 'type'") + throw CompilationCheckException("${outgoingEventClass.qualifiedName?.asString()} must have a field named 'type'") } }