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

Include more context in ResourceNotFound exceptions #55

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

mjgiarlo
Copy link
Member

Why was this change made? 🤔

This makes it easier to know which job failed and how many retries were performed.

How was this change tested? 🤨

CI + QA

This makes it easier to know which job failed and how many retries were performed.
@mjgiarlo mjgiarlo changed the title Include more context in ResourceNotFound exceptions [HOLD] Include more context in ResourceNotFound exceptions Mar 22, 2023
@mjgiarlo mjgiarlo changed the title [HOLD] Include more context in ResourceNotFound exceptions Include more context in ResourceNotFound exceptions Mar 22, 2023
@@ -65,7 +65,7 @@ client.fetch_hrid(barcode: "12345")
=> "a7927874"

# Request a MARC record given an instance hrid
# returns a hash if found; raises FolioClient::UnexpectedResponse::ResourceNotFound if instance_hrid not found
# returns a hash if found; raises FolioClient::ResourceNotFound if instance_hrid not found
Copy link
Member Author

Choose a reason for hiding this comment

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

We missed this back when we moved the location of the client exceptions.

@jmartin-sul jmartin-sul merged commit 39ec785 into main Mar 22, 2023
@jmartin-sul jmartin-sul deleted the more-context-when-job-not-found branch March 22, 2023 18:02
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