Skip to content

Improve error printing #169

Closed
Closed
@kylebarron

Description

@kylebarron

I was talking with @vincentsarago and he mentioned he got an error that looked like:

GenericError: Generic {
    store: "S3",
    source: BareRedirect,
}

Looking at the upstream implementation I see

/// Retry request error
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Received redirect without LOCATION, this normally indicates an incorrectly configured region")]
    BareRedirect,

Perhaps we should update our errors to use the to_string impl? Note that this was previously changed in #54 https://github.com/developmentseed/obstore/blame/78860c6e71255bdf06c973b9b9435cdedc2e3fdd/pyo3-object_store/src/error.rs#L112

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