Skip to content

Commit 3653220

Browse files
committed
Merge branch 'use_subprocess.run' into merge
2 parents 92d804a + a1b6aa8 commit 3653220

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
@@ -303,7 +303,7 @@ def _run_cmd(self, cmd: list, timeout: Optional[int] = None):
303303
logger.debug("OM output for command %s:\n%s", cmd, stdout)
304304

305305
if cmdres.returncode != 0:
306-
raise ModelicaSystemError(f"Error running command {cmd}: nonzero return code")
306+
raise ModelicaSystemError(f"Error running command {cmd}: return code = {cmdres.returncode}")
307307
if stderr:
308308
raise ModelicaSystemError(f"Error running command {cmd}: {stderr}")
309309
except subprocess.TimeoutExpired:

0 commit comments

Comments
 (0)