Skip to content
This repository was archived by the owner on Oct 6, 2021. It is now read-only.

API Error Parsing#1

Open
volleio wants to merge 2 commits intomasterfrom
fix/api-error-parsing
Open

API Error Parsing#1
volleio wants to merge 2 commits intomasterfrom
fix/api-error-parsing

Conversation

@volleio
Copy link
Collaborator

@volleio volleio commented Jan 22, 2021

This is a fix for mapbox#42 Error Granularity. Exceptions raised by the API will be returned with the correct message provided by the Mapbox API, such as:
API Error: 422 Unprocessable Entity - Query too long - 273/256 characters

fix: correct api error message parsing
fix: raise exceptions with formatted string

Ran the test suite locally, with

24 tests, 29 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

fix: raise exceptions with formatted string
@volleio volleio requested a review from waissbluth January 22, 2021 18:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants