Skip to content

Rescue external server errors in location search controllers to avoid exceptions#8068

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/rescue-faraday-errors-in-location-search
Mar 24, 2023
Merged

Rescue external server errors in location search controllers to avoid exceptions#8068
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/rescue-faraday-errors-in-location-search

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Mar 24, 2023

🛠 Summary of changes

Similar to #8060 and #7894, this adds a more general class of errors to avoid returning exceptions on in these controllers.

@mitchellhenke mitchellhenke requested review from a team and NavaTim March 24, 2023 15:58
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Should we just rescue the base Faraday::Error class, rather than incrementally adding each subclass?

Copy link
Contributor

@JackRyan1989 JackRyan1989 left a comment

Choose a reason for hiding this comment

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

LGTM.

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/rescue-faraday-errors-in-location-search branch from 6e94556 to 671cba3 Compare March 24, 2023 16:06
@mitchellhenke
Copy link
Contributor Author

Should we just rescue the base Faraday::Error class, rather than incrementally adding each subclass?

Smart, yes we should. PR has been updated.

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/rescue-faraday-errors-in-location-search branch from 671cba3 to c2ce4b8 Compare March 24, 2023 16:14
… exceptions

changelog: Bug Fixes, In-person Proofing, Rescue external server errors to avoid exceptions
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/rescue-faraday-errors-in-location-search branch from c2ce4b8 to e210958 Compare March 24, 2023 16:40
Copy link
Contributor

@JackRyan1989 JackRyan1989 left a comment

Choose a reason for hiding this comment

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

LGTM!

@mitchellhenke mitchellhenke merged commit fd7e3ee into main Mar 24, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/rescue-faraday-errors-in-location-search branch March 24, 2023 17:00
mitchellhenke pushed a commit that referenced this pull request Mar 24, 2023
… exceptions (#8068)

changelog: Bug Fixes, In-person Proofing, Rescue external server errors to avoid exceptions
@aduth aduth mentioned this pull request Mar 27, 2023
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