Rethrow InterpreterTimeOutError as UserException
This commit is contained in:
committed by
TeamCityServer
parent
c23e8517b3
commit
ca231ccc53
@@ -69,7 +69,7 @@ class IrInterpreter(private val irBuiltIns: IrBuiltIns, private val bodyMap: Map
|
|||||||
|
|
||||||
private fun incrementAndCheckCommands() {
|
private fun incrementAndCheckCommands() {
|
||||||
commandCount++
|
commandCount++
|
||||||
if (commandCount >= MAX_COMMANDS) throw InterpreterTimeOutError()
|
if (commandCount >= MAX_COMMANDS) InterpreterTimeOutError().throwAsUserException()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun interpret(expression: IrExpression): IrExpression {
|
fun interpret(expression: IrExpression): IrExpression {
|
||||||
|
|||||||
Reference in New Issue
Block a user