Minor. Throw proper exception in test framework on directive processing

This commit is contained in:
Mikhail Bogdanov
2020-03-19 13:42:46 +01:00
parent 3f87899014
commit 8b330193ac
@@ -21,7 +21,9 @@ class Directives {
if (value == null) {
directives[key] = null
} 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")
}
}
}