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

ErrorKind can't be retrieved #56

Open
LoganDark opened this issue Mar 12, 2022 · 1 comment
Open

ErrorKind can't be retrieved #56

LoganDark opened this issue Mar 12, 2022 · 1 comment

Comments

@LoganDark
Copy link

LoganDark commented Mar 12, 2022

I don't like the style of this crate's error messages ("unexpected free argument" vs "too many arguments") so I wanted to rewrite the error messages myself by catching errors and matching on them. However, once I obtain an Error struct, I can't actually extract the kind out of it because it's private and there's no getter!

:(

@Kixiron
Copy link

Kixiron commented Jun 16, 2022

In addition to that, since Error doesn't have any Eq implementation it's impossible to test errors at all, I'd like to have my binary give out the help text if no command is provided but that's currently impossible

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

No branches or pull requests

2 participants