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'") } }