Skip to content

Commit 534ece3

Browse files
authored
make warning more useful (#109)
before: ``` NodeType(COMMENT) wouldn't need to have overflowdb.schema.Property@3b39222 added ... ``` after: ``` NodeType(COMMENT) wouldn't need to have property `CODE` added ... ```
1 parent ce525c5 commit 534ece3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegen/src/main/scala/overflowdb/codegen/CodeGen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CodeGen(schema: Schema) {
4444
property <- nodeType.propertiesWithoutInheritance
4545
baseType <- nodeType.extendzRecursively
4646
if baseType.propertiesWithoutInheritance.contains(property) && !noWarnList.contains((nodeType, property))
47-
} yield s"[info]: $nodeType wouldn't need to have $property added explicitly - $baseType already brings it in"
47+
} yield s"[info]: $nodeType wouldn't need to have property `${property.name}` added explicitly - $baseType already brings it in"
4848

4949
if (warnings.size > 0) println(s"${warnings.size} warnings found:")
5050
warnings.sorted.foreach(println)

0 commit comments

Comments
 (0)