Closed vincent-pochet closed 1 week ago
This PR fixes https://github.com/getlago/lago-python-client/issues/266
It makes sure that LagoApiError shows a comprehensible message in the output. It will render the API response, allowing user to quickly understand the source of the error.
LagoApiError
lago_python_client.exceptions.LagoApiError
lago_python_client.exceptions.LagoApiError: {'status': 422, 'error': 'Unprocessable Entity', 'code': 'validation_errors', 'error_details': {'transaction_id': ['value_already_exist']}}
This PR fixes https://github.com/getlago/lago-python-client/issues/266
It makes sure that
LagoApiError
shows a comprehensible message in the output. It will render the API response, allowing user to quickly understand the source of the error.Before
After