Skip to content

Replace pkg/errors with Go standard library error handling #263

@stickpro

Description

@stickpro

Currently the project uses github.com/pkg/errors for error wrapping and stack traces.
Since Go 1.13, the standard library provides built-in error wrapping and inspection via:
errors.Is
errors.As
errors.Unwrap
fmt.Errorf("... %w", err)
This makes pkg/errors redundant for most use cases and allows us to reduce external dependencies.

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