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

Use conditionMessage() to render conditions #100

Merged
merged 2 commits into from
May 11, 2021

Conversation

davidchall
Copy link
Contributor

When following the error constructor design pattern, we might have condition objects with an empty message field. Instead, their message is constructed via the conditionMessage() S3 method. Currently, such condition messages are omitted from the {downlit} output.

@davidchall
Copy link
Contributor Author

@hadley If you agree with these changes, I wonder if it might be possible to get this into v0.3.0? (Sorry, I wouldn't normally ping you, but I saw you're in the early stages of a release process.)

@hadley
Copy link
Member

hadley commented May 10, 2021

Sure, could you add a news bullet too please?

@davidchall
Copy link
Contributor Author

@hadley - I put the NEWS item immediately after the item about other changes to messages, warnings and errors. Please let me know if you'd prefer it to go at the end?

@hadley hadley merged commit 0778f60 into r-lib:master May 11, 2021
@hadley
Copy link
Member

hadley commented May 11, 2021

Looks good, thanks!

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