Skip to content

Commit

Permalink
Corrected error handling (lbl-srg#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter authored Nov 10, 2020
1 parent 9056b55 commit 0a881fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildingspy/simulate/base_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ def _runSimulation(self, cmd, timeout, directory, env=None):

# Check if executable is on the path
if not self._isExecutable(cmd[0]):
print(("Error: Did not find executable '", cmd[0], "'."))
print(" Make sure it is on the PATH variable of your operating system.")
exit(3)
em = f"Error: Did not find executable '", cmd[0], "'."
em += " Make sure it is on the PATH variable of your operating system."
raise RuntimeError(em)

# Add _packagePath to MODELICAPATH. This is for example needed for
# export USE_DOCKER=true
Expand Down

0 comments on commit 0a881fe

Please sign in to comment.