We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1880049 commit 04ccf1dCopy full SHA for 04ccf1d
OMPython/ModelicaSystem.py
@@ -253,14 +253,14 @@ def run(self) -> int:
253
stderr = cmdres.stderr.strip()
254
returncode = cmdres.returncode
255
256
- logger.debug("OM output for command %s:\n%s", cmdl, stdout)
+ logger.debug("OM output for command %s:\n%s", repr(cmdl), stdout)
257
258
if stderr:
259
- raise ModelicaSystemError(f"Error running command {cmdl}: {stderr}")
+ raise ModelicaSystemError(f"Error running command {repr(cmdl)}: {stderr}")
260
except subprocess.TimeoutExpired:
261
raise ModelicaSystemError(f"Timeout running command {repr(cmdl)}")
262
except Exception as ex:
263
- raise ModelicaSystemError(f"Error running command {cmdl}") from ex
+ raise ModelicaSystemError(f"Error running command {repr(cmdl)}") from ex
264
265
return returncode
266
0 commit comments