Skip to content

Improve error reporting #110

@Johan-Liebert1

Description

@Johan-Liebert1

Error reporting right now is pretty sub optimal which makes tracking down the exact source pretty cumbersome. Case in point, the following error

Error: Directory entry "grpc" does not exist

is caused by

    #[error("Directory entry {0:?} does not exist")]
    NotFound(Box<OsStr>),

The above error value is used in multiple places, six to be exact, which demands checking all of said places.

We should use fn_error_context::context to have additional information on the error source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions