Skip to content

Errors appear to be reversed #558

Open
@calummoore

Description

@calummoore

Environment

0.30.0

Steps to Reproduce

  1. Create multiple wrapped errors using thiserror::Error: e.g. OuterError::HTTPError(InnerError::CollectionHasNoAST)
  2. Call sentry::capture_error(&error);
  3. 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

Screenshot 2023-03-08 at 00 35 39

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions