Skip to content

[1.0] Restructure PatternError #166

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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