Skip to content

Use Error Type instead of fmt.Errorf #1169

@oxzi

Description

@oxzi

When working with errors returned by pq, lots of those are being generated via fmt.Errorf. This makes it hard to distinguish between different types of errors later in your own code, falling back to doing string prefix checks. So I would like to ask you to provide a separate error type which can be checked downstream.

Thanks a lot for providing this library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions