Minor: show method key in parse error

This commit is contained in:
Nikolay Krasko
2019-12-23 23:29:58 +03:00
parent 143cfc7030
commit d575df56e9
@@ -47,11 +47,11 @@ private class MutedTest(
methodKey = (beforeParamsKey.substringAfterLast(".", "") + params)
.also {
if (it.isEmpty()) throw IllegalArgumentException("Can't get method name")
if (it.isEmpty()) throw IllegalArgumentException("Can't get method name: '$key'")
}
classNameKey = beforeParamsKey.substringBeforeLast(".", "").also {
if (it.isEmpty()) throw IllegalArgumentException("Can't get class name")
if (it.isEmpty()) throw IllegalArgumentException("Can't get class name: '$key'")
}
simpleClassName = classNameKey.substringAfterLast(".")