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
Errors with additional info #4
Comments
Hm, it's interesting. I usually use something like this:
It's a little more verbose. But is it bad enough to require another syntax? |
What I don't like, is writing
I'm not sure if we need any shortcut for this. What do you think? |
Defining function maybe really better as it clearer declares error type, but extra 7+ characters. |
I still feel this is an interesting issue, even if we don't know how to approach the issue yet. |
In https://github.com/gkoz/gir/blob/master/src/config.rs we use this enum for error of configuration processing:
Last 3 errors here also contains file name.
Currently for error conversion we use tuple
with
From
definitionThis is the normal way to handle errors?
Currently seems no way to use this method in
quick-error
.Can this functionality be added in
quick-error
?The text was updated successfully, but these errors were encountered: