Skip to content

Commit

Permalink
Incorporate error message into exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mandli committed Jul 23, 2019
1 parent 51345cf commit 6c1e0f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/python/clawutil/runclaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,8 @@ def runclaw(xclawcmd=None, outdir=None, overwrite=True, restart=None,
stderr=xclawerr)

except subprocess.CalledProcessError as cpe:
print("")
print("*** FORTRAN EXE FAILED ***")
print("")
raise ClawExeError('error', cpe.returncode, cpe.cmd,
exe_error_str = "\n\n*** FORTRAN EXE FAILED ***\n"
raise ClawExeError(exe_error_str, cpe.returncode, cpe.cmd,
output=cpe.output,
stderr=cpe.stderr)

Expand Down

0 comments on commit 6c1e0f0

Please sign in to comment.