From d575df56e98512901c2ca15c560665509ae85498 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 23 Dec 2019 23:29:58 +0300 Subject: [PATCH] Minor: show method key in parse error --- .../tests/org/jetbrains/kotlin/test/muteWithDatabase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/muteWithDatabase.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/test/muteWithDatabase.kt index 242c51e083a..c72f713b4c0 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/muteWithDatabase.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/muteWithDatabase.kt @@ -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(".")