Skip to content

Commit c5c02b9

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

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
@@ -95,7 +95,8 @@ fun <T> KotlinTypeFacade.interpret(
9595
.filterNot { it.name.startsWith("typeArg") }
9696
.associateBy { it.name }.toSortedMap().minus(additionalArguments.keys)
9797

98-
if (expectedArgsMap.keys - defaultArguments != actualArgsMap.keys - defaultArguments) {
98+
val unexpectedArguments = expectedArgsMap.keys - defaultArguments != actualArgsMap.keys - defaultArguments
99+
if (unexpectedArguments) {
99100
val message = buildString {
100101
appendLine("ERROR: Different set of arguments")
101102
appendLine("Implementation class: $processor")
@@ -105,8 +106,7 @@ fun <T> KotlinTypeFacade.interpret(
105106
appendLine("add arguments to an interpeter:")
106107
appendLine(diff.map { actualArgsMap[it] })
107108
}
108-
reporter.reportInterpretationError(functionCall, message)
109-
return null
109+
interpretationFrameworkError(message)
110110
}
111111

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

0 commit comments

Comments
 (0)