Skip to content

Commit f0b0868

Browse files
update error notice
1 parent b63332b commit f0b0868

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ktorm-ksp-compiler/src/main/kotlin/org/ktorm/ksp/compiler/parser/MetadataParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal class MetadataParser(resolver: Resolver, environment: SymbolProcessorEn
8484
}
8585

8686
if (cls.classKind == INTERFACE && !cls.isSubclassOf<Entity<*>>()) {
87-
throw IllegalStateException("$className must extend from org.ktorm.entity.Entity.")
87+
throw IllegalStateException("$className should extend from org.ktorm.entity.Entity.")
8888
}
8989

9090
if (cls.classKind == CLASS && cls.isAbstract()) {

ktorm-ksp-compiler/src/test/kotlin/org/ktorm/ksp/compiler/parser/MetadataParserTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MetadataParserTest : BaseKspTest() {
1515
""".trimIndent())
1616

1717
@Test
18-
fun testInterfaceNotExtendingEntity() = kspFailing("User must extend from org.ktorm.entity.Entity.", """
18+
fun testInterfaceNotExtendingEntity() = kspFailing("User should extend from org.ktorm.entity.Entity.", """
1919
@Table
2020
interface User {
2121
val id: Int

0 commit comments

Comments
 (0)