Include status code in warning

main
Bob Mottram 2021-10-18 10:58:41 +01:00
parent 47601da0be
commit ee11752b0b
1 changed files with 2 additions and 2 deletions

View File

@ -334,8 +334,8 @@ def postJsonString(session, postJsonStr: str,
else:
if not quiet:
print('WARN: Failed to post to ' + inboxUrl +
' with headers ' + str(headers))
print('status code ' + str(postResult.status_code))
' with headers ' + str(headers) +
' status code ' + str(postResult.status_code))
return False, False
return True, False