Skip to content

Commit 642a2ee

Browse files
committed
[Compiler plugin] exception should not be caught to be visible in tests failure messages
1 parent 9505424 commit 642a2ee

File tree

1 file changed

+3
-3
lines changed
  • plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin

1 file changed

+3
-3
lines changed

plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin/interpret.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ fun <T> KotlinTypeFacade.interpret(
9797
.filterNot { it.name.startsWith("typeArg") }
9898
.associateBy { it.name }.toSortedMap().minus(additionalArguments.keys)
9999

100-
if (expectedArgsMap.keys - defaultArguments != actualArgsMap.keys - defaultArguments) {
100+
val unexpectedArguments = expectedArgsMap.keys - defaultArguments != actualArgsMap.keys - defaultArguments
101+
if (unexpectedArguments) {
101102
val message = buildString {
102103
appendLine("ERROR: Different set of arguments")
103104
appendLine("Implementation class: $processor")
@@ -107,8 +108,7 @@ fun <T> KotlinTypeFacade.interpret(
107108
appendLine("add arguments to an interpeter:")
108109
appendLine(diff.map { actualArgsMap[it] })
109110
}
110-
reporter.reportInterpretationError(functionCall, message)
111-
return null
111+
interpretationFrameworkError(message)
112112
}
113113

114114
val arguments = mutableMapOf<String, Interpreter.Success<Any?>>()

0 commit comments

Comments
 (0)