You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been using anyhow extensively, and it's worked out great. There's just one super confusing thing. I would expect:
println!("{}", anyhow!("My error message").context("on a file"))
To print at least My error message, and ideally on a file. But it just prints on a file. I know {:#} is available, but I've yet to find a case where we didn't want {:#} and the usage of {} is pretty pervasive - we've had it when printing messages nested, as format strings to thiserror etc. It is the bug we seem to make every single time. I appreciate compatibility constraints might be hard, but switching the two (or even making them both the same) would be easier to use.
The text was updated successfully, but these errors were encountered:
Features are enabled when at least one dependency enables it, so they should not be used for "options". Otherwise pulling in a dependency which uses this "feature" will enable it for you and break your code and code of other dependencies which do not expect it.
Repository owner
locked and limited conversation to collaborators
Feb 21, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We've been using anyhow extensively, and it's worked out great. There's just one super confusing thing. I would expect:
To print at least
My error message
, and ideallyon a file
. But it just printson a file
. I know{:#}
is available, but I've yet to find a case where we didn't want{:#}
and the usage of{}
is pretty pervasive - we've had it when printing messages nested, as format strings tothiserror
etc. It is the bug we seem to make every single time. I appreciate compatibility constraints might be hard, but switching the two (or even making them both the same) would be easier to use.The text was updated successfully, but these errors were encountered: