Skip to content

The error variant "Could initialize the http client" provides no further detail #1075

@Shnatsel

Description

@Shnatsel

Current behavior 😯

Users of cargo audit are reporting that they see an error "Could initialize the http client" with no further detail: rustsec/rustsec#1029
This makes it non-actionable for users and impossible to debug for developers.

It is defined in this code:
https://github.com/Byron/gitoxide/blob/c0e72fbadc0a494f47a110aebb46462d7b9f5664/gix-transport/src/client/blocking_io/http/traits.rs#L6-L10

Expected behavior 🤔

First off, the message should include a "not" 😉

The Display implementation for the error should also call the Display of the underlying error, so that the cause of the failed initialization could be understood and acted upon.

Steps to reproduce 🕹

No response

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