[Test] Improve error reporting if there are too many values passed to directive

This commit is contained in:
Dmitriy Novozhilov
2021-01-22 16:09:48 +03:00
parent 5c8d555808
commit 9ba41c5b88
@@ -162,6 +162,6 @@ fun <T : Any> RegisteredDirectives.singleOrZeroValue(directive: ValueDirective<T
return when (values.size) {
0 -> null
1 -> values.single()
else -> error("Too many values passed to $directive")
else -> error("Too many values passed to $directive: ${values.joinToArrayString()}")
}
}