From ca231ccc5371a6adc197b084d2dfc4a51877e868 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Fri, 16 Apr 2021 18:00:53 +0300 Subject: [PATCH] Rethrow InterpreterTimeOutError as UserException --- .../src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt index 892fc160656..c5687eaf8a3 100644 --- a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt +++ b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt @@ -69,7 +69,7 @@ class IrInterpreter(private val irBuiltIns: IrBuiltIns, private val bodyMap: Map private fun incrementAndCheckCommands() { commandCount++ - if (commandCount >= MAX_COMMANDS) throw InterpreterTimeOutError() + if (commandCount >= MAX_COMMANDS) InterpreterTimeOutError().throwAsUserException() } fun interpret(expression: IrExpression): IrExpression {