Skip to content

Consolidate error handling#50

Open
jashapiro wants to merge 5 commits into
jashapiro/download-datasetfrom
jashapiro/48-consolidate-errors
Open

Consolidate error handling#50
jashapiro wants to merge 5 commits into
jashapiro/download-datasetfrom
jashapiro/48-consolidate-errors

Conversation

@jashapiro
Copy link
Copy Markdown
Member

Closes #48
Stacked on #49

This consolidates error handling to a couple of new internal functions. One replaces the calls to req_perform so we don't have to have tryCatch littered about and can use some default messages, but ones that can be easily overridden for expected errors. The other is the handler that actually does the handling, which we can use for other calls like when we used paged responses.

Because this touches so many files (mostly deleting code though!) I am filing it as a draft for now; I fully expect some modifications may be needed after other reviews and updates.

@jashapiro jashapiro changed the title Jashapiro/48 consolidate errors Consolidate error handling Jun 1, 2026
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.

1 participant