Skip to content

Commit 9afbdea

Browse files
committed
Merge branch 'improve_exception' into v4.1.0-syntron2
2 parents 5ac5bf8 + 32b551d commit 9afbdea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def sendExpression(self, expr: str, parsed: bool = True) -> Any:
576576
try:
577577
retval = self._getconn.sendExpression(expr, parsed)
578578
except OMCSessionException as ex:
579-
raise ModelicaSystemError(f"Error executing {repr(expr)}") from ex
579+
raise ModelicaSystemError(f"Error executing {repr(expr)}: {ex}") from ex
580580

581581
logger.debug(f"Result of executing {repr(expr)}: {textwrap.shorten(repr(retval), width=100)}")
582582

0 commit comments

Comments
 (0)