Rethrow InterpreterTimeOutError as UserException

This commit is contained in:
Ivan Kylchik
2021-04-16 18:00:53 +03:00
committed by TeamCityServer
parent c23e8517b3
commit ca231ccc53
@@ -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 {