Skip to content

Commit 108723a

Browse files
authored
Merge branch 'master' into ModelicaSystemDoE_use_OMCPath
2 parents 04b973f + 8fa7c81 commit 108723a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

OMPython/OMCSession.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,9 @@ def sendExpression(self, command: str, parsed: bool = True) -> Any:
702702

703703
result = self.omc_zmq.recv_string()
704704

705+
if result.startswith('Error occurred building AST'):
706+
raise OMCSessionException(f"OMC error: {result}")
707+
705708
if command == "getErrorString()":
706709
# no error handling if 'getErrorString()' is called
707710
if parsed:

0 commit comments

Comments
 (0)