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

Better error message if A requires B, but A wasn't given #403

Open
pacak opened this issue Dec 18, 2024 · 0 comments
Open

Better error message if A requires B, but A wasn't given #403

pacak opened this issue Dec 18, 2024 · 0 comments
Labels
messages Help and error messages

Comments

@pacak
Copy link
Owner

pacak commented Dec 18, 2024

Say your app supports flag --describe that would make it to do whatever it was doing before, but also to describe the computation, it might be possible to have --detailed flag that makes description detailed. It doesn't make sense to specify --detailed without --describe, but naive implementation would result in a less clear error message

struct Describe {
    describe: (),
    detailed: bool,
}

Currently you can make a better error message with guard and Describe containing two bools...

@pacak pacak added the messages Help and error messages label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
messages Help and error messages
Projects
None yet
Development

No branches or pull requests

1 participant