mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-07-22 10:20:39 -05:00
improve error printing (show problematic result ID)
This commit is contained in:
parent
63def36e62
commit
470369e298
6
s3s.py
6
s3s.py
|
|
@ -1082,7 +1082,11 @@ def post_result(data, ismonitoring, isblackout, istestrun, overview_data=None):
|
|||
print(f"* time uploaded: {time_uploaded}; time now: {time_now}")
|
||||
|
||||
if postbattle.status_code != 201: # Created (or already exists)
|
||||
print(f"Error uploading {utils.set_noun(which)[:-1]}. Message from server:")
|
||||
print(f"Error uploading {utils.set_noun(which)[:-1]}.")
|
||||
detail_type = "vsHistoryDetail" if which == "ink" else "coopHistoryDetail"
|
||||
result_id = data["data"][detail_type]["id"]
|
||||
print(f"{utils.set_noun(which)[:-1].capitalize()} ID: {result_id}")
|
||||
print("Message from server:")
|
||||
print(postbattle.content.decode('utf-8'))
|
||||
elif time_uploaded <= time_now - 5: # give some leeway
|
||||
print(f"{utils.set_noun(which)[:-1].capitalize()} already uploaded - {headerloc}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user