Skip to content

update error handling #1

@aaronleopold

Description

@aaronleopold

I think using anyhow and/or thiserror might be beneficial, something like this:

#[derive(Debug, Error)]
pub enum Error {
    #[error("Some defined error: {0}")]
    DefinedErrorName(Box<dyn std::error::Error>),
    #[error("There was an unexpected error: {0}")]
    Other(Box<dyn std::error::Error>),
}

I should also remove some of the unsafe/unchecked unwraps in the code

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