Skip to content

[1.0] Restructure PatternError #166

@tgross35

Description

@tgross35

Strongly typed errors would be helpful:

#[non_exhaustive]
pub struct PatternError {
    pub pos: usize,
    pub msg: PattternErrorKind,
}

#[non_exhaustive]
enum PattternErrorKind {
    // ...
}

This would make it easier for any crates using glob to transform errors into their own messages if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions