Skip to content

Commit e8ff53a

Browse files
authored
Merge pull request #628 from BrianDeacon/TypeClassMatcher-errormessage
Add potentialMatch.reference to error message in TypeClassMatcher
2 parents d25e7c4 + 37cc535 commit e8ff53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/graphql/kickstart/tools/TypeClassMatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class TypeClassMatcher(private val definitionsByName: Map<String, TypeD
1717
fun isListType(realType: ParameterizedType, generic: GenericType) = generic.isTypeAssignableFromRawClass(realType, Iterable::class.java)
1818
}
1919

20-
private fun error(potentialMatch: PotentialMatch, msg: String) = SchemaClassScannerError("Unable to match type definition (${potentialMatch.graphQLType}) with java type (${potentialMatch.javaType}): $msg")
20+
private fun error(potentialMatch: PotentialMatch, msg: String) = SchemaClassScannerError("Unable to match type definition (${potentialMatch.graphQLType}) for reference ${potentialMatch.reference} with java type (${potentialMatch.javaType}): $msg")
2121

2222
fun match(potentialMatch: PotentialMatch): Match {
2323
return match(potentialMatch, potentialMatch.graphQLType, potentialMatch.javaType, true)

0 commit comments

Comments
 (0)