Skip to content

Improve error message on non-200 status code#544

Open
bitterpanda63 wants to merge 2 commits intomainfrom
imrpove-non-200-status-code-error
Open

Improve error message on non-200 status code#544
bitterpanda63 wants to merge 2 commits intomainfrom
imrpove-non-200-status-code-error

Conversation

@bitterpanda63
Copy link
Member

No description provided.

)
return {"success": False, "error": "unknown_error"}
logger.debug("ReportingApi.to_api_response: Failed for [%s] %s", status, res.text)
return {"success": False, "error": "status_code_not_200"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include actual status code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants