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
Checking with other SDKs, this seems to be consistent at least with the Python SDK, which is more of a reference SDK than the Rust one.
No matter which way chained errors are sorted, they will still group into individual issues for each unique chain, which is good.
The problem is that neither sorting direction is particularly useful.
You either end up with your catch-all anyhow::Error as the label in sentry;
Or you end up with io::Error which I bet is a very common leaf error.
io::Error is definitely more useful than anyhow::Error. And if the user wants something more useful that io:Error they can wrap it in a struct CannotReadSomething(io::Error) and unless they add it as source it won't be the last item CannotReadSomething would be.
Environment
0.30.0
Steps to Reproduce
thiserror::Error
: e.g.OuterError::HTTPError(InnerError::CollectionHasNoAST)
sentry::capture_error(&error);
Expected Result
Errors go from more specific (lower/inner) to more vague (higher/outer)
CollectionHasNoAST
->HTTPError
Actual Result
HTTPError
->CollectionHasNoAST
Console
Workaround
I currently reverse the errors back, and now errors make sense in the console:
The text was updated successfully, but these errors were encountered: