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

Conditionally print message about record possibly being component #6337

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

zth
Copy link
Collaborator

@zth zth commented Aug 4, 2023

Whenever there's a missing property in a record, we optimistically tell the user this might be a component. While that is great, we're always printing it for any record.

This diff applies a simple heuristic ("is the record called props?") when deciding to print the message about this being a component or not.

@zth zth requested review from cristianoc and mununki August 4, 2023 07:52
Copy link
Member

@mununki mununki 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! Thanks

Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

Good idea

@zth zth merged commit 87d7869 into master Aug 4, 2023
14 checks passed
@zth zth deleted the error-message-missing-prop branch August 4, 2023 11:03
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.

None yet

3 participants