mirror of
https://github.com/mtkennerly/dunamai-action.git
synced 2025-06-20 14:30:48 +00:00
#2: Fix error reporting
This commit is contained in:
parent
66bb6c8842
commit
c1b34a8a25
3 changed files with 10 additions and 32 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue