Skip to content

serde_json::Error locations are omitted from the anyhow::Error backtrace #1220

Open
@vittorius

Description

@vittorius

Hey.

I'm returning an error of the following structure from my method with the return type anyhow::Result<()>. Strangely, when I try to log the backtrace, I can't see the lines related to the serde_json::Error that is the source:

Can this "gap" in the source() chain be a reason for this? (My error is "EOF when decoding a value", not an Io category of serde_json:Error's.
Or could be there any other reason?

(Related issue in the anyhow repo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions