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

Improve compiler error when providing a wrong attribute #8597

Open
bartv opened this issue Jan 10, 2025 · 0 comments
Open

Improve compiler error when providing a wrong attribute #8597

bartv opened this issue Jan 10, 2025 · 0 comments
Labels
compiler usability This ticket is related to improved usability

Comments

@bartv
Copy link
Contributor

bartv commented Jan 10, 2025

When a wrong attribute is used the following error is given:

Error: no attribute gpg_key on type yum::Repository (reported in gpg_key (model.cf68:9))

We can improve this by:

  • Adding the list of attributes that are available to the message
  • If there is a highly similar one suggest that

For example:

Error: no attribute gpg_key on type yum::Repository (reported in gpg_key (model.cf68:9)). Did you mean `gpgkey`? The following attributes are available name, host, gpgkey, baseurl, ...
@bartv bartv added compiler usability This ticket is related to improved usability labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler usability This ticket is related to improved usability
Projects
None yet
Development

No branches or pull requests

1 participant