#2: Fix error reporting

This commit is contained in:
mtkennerly 2023-03-28 23:21:23 +08:00
parent 66bb6c8842
commit c1b34a8a25
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
3 changed files with 10 additions and 32 deletions

View file

@ -25,11 +25,11 @@ def set_failed(error: Exception) -> None:
stdout = getattr(error, "stdout", None)
if stdout is not None:
print("stdout: {}".format(stdout))
print("stdout: {}".format(stdout.decode("utf-8").strip()))
stderr = getattr(error, "stderr", None)
if stderr is not None:
print("stderr: {}".format(stdout))
print("stderr: {}".format(stdout.decode("utf-8").strip()))
def main() -> None: