Skip to content

Commit

Permalink
Annotation-generator : fix error message for missing type property
Browse files Browse the repository at this point in the history
  • Loading branch information
delphes99 committed May 10, 2024
1 parent 85424c5 commit 4e72562
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'")
}
}

Expand Down

0 comments on commit 4e72562

Please # to comment.