Skip to content

Commit

Permalink
Final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Aug 5, 2024
1 parent c54b26d commit 7b8a856
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sinol_make/executors/detailed.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def _parse_result(self, tle, mle, return_code, result_file_path) -> ExecutionRes
result.Error = "Unexpected output from execution:\n" + "".join(lines)
result.Fail = True
if program_exit_code != 0:
program_exit_code = abs(program_exit_code)
result.Status = Status.RE
result.Error = f"Solution exited with code {program_exit_code}"
result.Error = f"Program exited with code {program_exit_code}"
result.ExitSignal = os.WTERMSIG(program_exit_code)
return result

0 comments on commit 7b8a856

Please sign in to comment.