Skip to content

Commit a1b6aa8

Browse files
committed
[ModelicaSystem] provide return code in log message
1 parent c1a3d20 commit a1b6aa8

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
@@ -315,7 +315,7 @@ def _run_cmd(self, cmd: list, timeout: Optional[int] = None):
315315
stdout = cmdres.stdout.strip()
316316
stderr = cmdres.stderr.strip()
317317
if cmdres.returncode != 0:
318-
raise ModelicaSystemError(f"Error running command {cmd}: nonzero return code")
318+
raise ModelicaSystemError(f"Error running command {cmd}: return code = {cmdres.returncode}")
319319
if stderr:
320320
raise ModelicaSystemError(f"Error running command {cmd}: {stderr}")
321321
if self._verbose and stdout:

0 commit comments

Comments
 (0)