Skip to content

Commit 85178ff

Browse files
committed
Merge branch 'improve_exception' into v4.1.0-syntron5
2 parents f2337dc + 8a7ed93 commit 85178ff

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
@@ -574,7 +574,7 @@ def sendExpression(self, expr: str, parsed: bool = True) -> Any:
574574
try:
575575
retval = self._session.sendExpression(expr, parsed)
576576
except OMCSessionException as ex:
577-
raise ModelicaSystemError(f"Error executing {repr(expr)}") from ex
577+
raise ModelicaSystemError(f"Error executing {repr(expr)}: {ex}") from ex
578578

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

0 commit comments

Comments
 (0)