diff --git a/src/org/jetbrains/eval4j/interpreterLoop.kt b/src/org/jetbrains/eval4j/interpreterLoop.kt index 6b11505da2a..d9dcfc1eaa1 100644 --- a/src/org/jetbrains/eval4j/interpreterLoop.kt +++ b/src/org/jetbrains/eval4j/interpreterLoop.kt @@ -45,7 +45,9 @@ trait InterpretationEventHandler { fun exceptionCaught(currentState: Frame, currentInsn: AbstractInsnNode, exception: Value): InterpreterResult? } -class ThrownFromEvalException(val exception: Value): RuntimeException() +class ThrownFromEvalException(val exception: Value): RuntimeException() { + fun toString(): String = "Thrown by evaluator: $exception" +} fun interpreterLoop( m: MethodNode,