Skip to content

Abnormal behaviour for Is in errors.go #58

@UmarFarooq-MP

Description

@UmarFarooq-MP

While reviewing different error libraries, I had the chance to read through this one. The design is excellent, but I noticed one issue: if someone calls Is with an empty error code, it currently returns true. This behavior is incorrect — it should never match when no code is provided.

Since the fix is small but important, I’ve raised this PR to address it.

Thanks!

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