Skip to content

Commit 2e5c7bb

Browse files
Merge pull request #46 from Omega-R/feature/fix_error_text
fix error message on not correct Channel usages
2 parents ea5318c + 6b1f44b commit 2e5c7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processor/src/main/java/com/omega_r/base/processor/kotlin/KotlinRepositoryModelParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class KotlinRepositoryModelParser(private val messager: Messager, private val el
9595
when (returnType.className) {
9696
CHANNEL_CLASS_NAME, SEND_CHANNEL_CLASS_NAME -> {
9797
messager.printMessage(
98-
ERROR, "${clazz.name} contains function $name with forbidden return type $returnType"
98+
ERROR, "${clazz.name} contains function $name with forbidden return type $returnType \nuse ReceiveChannel instead of Channel and SendChannel"
9999
)
100100
return null
101101
}

0 commit comments

Comments
 (0)