Skip to content

Commit ad19fe9

Browse files
committed
Merge branch 'ModelicaSystemCmd_use_OMCPath' into merge_me
2 parents 180bec6 + 0b7a670 commit ad19fe9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,12 @@ def buildModel(self, variableFilter: Optional[str] = None):
467467
modelname=self._model_name,
468468
timeout=5.0,
469469
)
470-
# ... and outputs help for command help
470+
# ... by running it - output help for command help
471471
om_cmd.arg_set(key="help", val="help")
472472
cmd_definition = om_cmd.definition()
473473
returncode = self._getconn.run_model_executable(cmd_run_data=cmd_definition)
474474
if returncode != 0:
475-
raise ModelicaSystemError("Error on model executable test!")
475+
raise ModelicaSystemError("Model executable not working!")
476476

477477
xml_file = self._getconn.omcpath(buildModelResult[0]).parent / buildModelResult[1]
478478
self._xmlparse(xml_file=xml_file)

0 commit comments

Comments
 (0)