Skip to content

Commit

Permalink
Mod: Add temp file in crash error msg of SPICE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Sep 18, 2023
1 parent 49b9e93 commit cd3ea12
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/aac_metrics/functional/spice.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,19 @@ def spice(
pylog.error(f"Full command: '{' '.join(spice_cmd)}'")
pylog.error(f"Error: {err}")

for fpath in (
fpaths = [
java_path,
spice_fpath,
in_file.name,
spice_cache,
out_file.name,
):
]
if stdout is not None:
fpaths.append(stdout.name)
if stderr is not None:
fpaths.append(stderr.name)

for fpath in fpaths:
info = {"t": "-", "r": "-", "w": "-", "x": "-"}
if osp.isfile(fpath):
info["t"] = "f"
Expand Down

0 comments on commit cd3ea12

Please sign in to comment.