Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide details in returned error #32

Merged
merged 1 commit into from
May 31, 2016
Merged

Provide details in returned error #32

merged 1 commit into from
May 31, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented May 31, 2016

When there’s an error, include a failure reason and recovery suggestion derived from the API response.

/ref mapbox/MapboxGeocoder.swift#49 mapbox/mapbox-directions-swift#47

When there’s an error, include a failure reason and recovery suggestion derived from the API response.
@1ec5 1ec5 self-assigned this May 31, 2016
@1ec5 1ec5 merged commit 03ed769 into master May 31, 2016
@1ec5 1ec5 deleted the 1ec5-error-messages branch May 31, 2016 09:09
1ec5 added a commit that referenced this pull request Jun 5, 2016
Even after #32, API errors (as opposed to HTTP errors) would be dropped on the floor, leading to no image and no error. This change adopts what MapboxGeocoder.swift and MapboxDirections.swift do, additionally using the absence of a decodable image as an indicator of an error.
@1ec5 1ec5 mentioned this pull request Jun 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant