Skip to content

Conversation

@JBWilkie
Copy link
Contributor

Problem

Whenever darwin-py makes an API call, it raises various exceptions in the raise_for_darwin_exception() function if the response object has an error code that needs to be raised. However, it simply raises the object itself which shows only the error code. It would be very helpful (especially for 422s) if the error text was also displayed

Solution

Display response.text as well as response when raising HTTP error codes

Changelog

Increased detail of error handling in darwin-py

@linear
Copy link

linear bot commented Sep 17, 2024

@JBWilkie JBWilkie merged commit 4e9435d into master Sep 17, 2024
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.

3 participants