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

152 friendly connection error messages #153

Merged
merged 7 commits into from
May 23, 2024

Conversation

jpavlich
Copy link
Member

@jpavlich jpavlich commented May 6, 2024

Fixes #152
I used tryCatch since it is the recommended way to catch errors in httr2 https://httr2.r-lib.org/reference/req_error.html
and it is used in functions that should abort when the connection fails

@jpavlich jpavlich linked an issue May 6, 2024 that may be closed by this pull request
@jpavlich jpavlich marked this pull request as draft May 7, 2024 15:03
@jpavlich
Copy link
Member Author

jpavlich commented May 7, 2024

@GeraldineGomez I will make some more changes before sending it again to you

Copy link
Member

@GeraldineGomez GeraldineGomez left a comment

Choose a reason for hiding this comment

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

Hi @jpavlich,

Thank you so much for tackling this issue 😊. I think the messages are very clear and friendly for the user. I made some minor comments.

R/import_data.R Outdated Show resolved Hide resolved
R/import_data.R Outdated Show resolved Hide resolved
@jpavlich jpavlich marked this pull request as ready for review May 20, 2024 22:22
…most connection errors and sends a friendly message before stopping
- Corrected small syntax errors on the examples of `plot_tabla_incidencia_geo`, `plot_tabla_incidencia_sex`

- Added `\donttest` to functions that connect to the network: `import_data_incidencia`, `import_data_event`
@jpavlich jpavlich force-pushed the 152-friendly-connection-error-messages branch from 8d3b73c to 0b524a7 Compare May 23, 2024 16:14
@jpavlich jpavlich merged commit 405a549 into main May 23, 2024
3 of 8 checks passed
@jpavlich jpavlich deleted the 152-friendly-connection-error-messages branch May 23, 2024 16:46
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.

Friendly connection error messages
2 participants