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

Make more helpful error for data_color() with infinite values #1585

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Feb 22, 2024

Summary

I found out that scales throws an error when infinite values are detected in range.
This adds withCallingHandlers() to rethrow the error message.

Note that this only catches the first one, but I think it is fine to stop.

Related GitHub Issues and PRs

Checklist

@olivroy olivroy changed the title Make more helpful warning for data_color. Make more helpful error for data_color() with infinite values Feb 22, 2024
@rich-iannone rich-iannone self-requested a review February 28, 2024 16:36
Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

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

Looks great. Thank you!

@rich-iannone rich-iannone merged commit 46c5e97 into rstudio:master Feb 28, 2024
12 checks passed
@olivroy olivroy deleted the error-msg branch February 28, 2024 17:13
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.

data_color() to include column name in error message
2 participants