Skip to content

Commit

Permalink
Fix: include information about relevant block in ScriptError message
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixel-Tony committed Feb 15, 2024
1 parent 9b8a23f commit edf807e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nml/expression/base_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit edf807e

Please sign in to comment.