Open
Description
Environment
0.30.0
Steps to Reproduce
- Create multiple wrapped errors using
thiserror::Error
: e.g.OuterError::HTTPError(InnerError::CollectionHasNoAST)
- Call
sentry::capture_error(&error);
- View in Sentry console
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:
let mut e = sentry::event_from_error(err);
// Reverse the errors
e.exception.values.reverse();
sentry::capture_event(e);