Minor. Throw proper exception in test framework on directive processing
This commit is contained in:
@@ -21,7 +21,9 @@ class Directives {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
directives[key] = null
|
directives[key] = null
|
||||||
} else {
|
} else {
|
||||||
directives.getOrPut(key, { arrayListOf() })!!.add(value)
|
directives.getOrPut(key, { arrayListOf() }).let {
|
||||||
|
it?.add(value) ?: error("Null value was already passed to $key via smth like // $key")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user