Skip to content

Commit 7be6a1f

Browse files
authored
Merge branch 'master' into reorder_imports
2 parents bef1dfd + f5ec079 commit 7be6a1f

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
@@ -703,6 +703,9 @@ def sendExpression(self, command: str, parsed: bool = True) -> Any:
703703

704704
result = self.omc_zmq.recv_string()
705705

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

0 commit comments

Comments
 (0)