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

Fix error handling documentation in README file #59

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

Tabby
Copy link
Contributor

@Tabby Tabby commented Jul 10, 2024

This documentation erroneously states that the gem will raise Faraday errors, but this hasn't been true for some time. In 2.9.0 it raised subclasses of Onfido::OnfidoError, and now in 3.x it raises Onfido::ApiError.

As well as the type being different, the Onfido::ApiError does not include accessors for the type or fields as specified.

This documentation erroneously states that the gem will raise Faraday
errors, but this hasn't been true for some time. In 2.9.0 it raised
subclasses of Onfido::OnfidoError, and now in 3.x it raises
Onfido::ApiError.

As well as the type being different, the Onfido::ApiError does not
include accessors for the type or fields as specified.
Copy link
Contributor

@dvacca-onfido dvacca-onfido left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Tabby for your contribution.

@dvacca-onfido dvacca-onfido merged commit 1b57823 into onfido:master Jul 17, 2024
4 of 5 checks passed
@Tabby Tabby deleted the update-readme-error-handling branch July 18, 2024 10:41
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