Skip to content

Commit b17064b

Browse files
committed
fix: print stdout on error
1 parent cd61cf1 commit b17064b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sign.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ def fastlane_auth(account_name: str, account_pass: str, team_id: str):
317317
print("Logged in!")
318318
break
319319
elif result is not None:
320-
raise Exception(f"Error logging in, got result: {result}")
320+
stdout, stderr = auth_pipe.communicate()
321+
result = {"error_code": result, "stdout": stdout, "stderr": stderr}
322+
raise Exception(f"Error logging in: {result}")
321323

322324
account_2fa_file = Path("account_2fa.txt")
323325
result = curl_with_auth(

0 commit comments

Comments
 (0)