From edf807ea0530835c5dd1638b8d564bd8745592d1 Mon Sep 17 00:00:00 2001 From: Pixel-Tony Date: Thu, 15 Feb 2024 12:56:22 +0100 Subject: [PATCH] Fix: include information about relevant block in ScriptError message --- nml/expression/base_expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nml/expression/base_expression.py b/nml/expression/base_expression.py index 92bdc60a..b6580ad2 100644 --- a/nml/expression/base_expression.py +++ b/nml/expression/base_expression.py @@ -92,7 +92,7 @@ def supported_by_action2(self, raise_error): @return: True if this expression can be calculated by advanced varaction2. """ if raise_error: - raise generic.ScriptError("This expression is not supported in a switch-block", self.pos) + raise generic.ScriptError("This expression is not supported in a switch-block or produce-block", self.pos) return False def supported_by_actionD(self, raise_error):