Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use github.com/pkg/errors everywhere #193

Open
colmsnowplow opened this issue Jan 24, 2022 · 1 comment
Open

Use github.com/pkg/errors everywhere #193

colmsnowplow opened this issue Jan 24, 2022 · 1 comment

Comments

@colmsnowplow
Copy link
Contributor

We import this package in https://github.com/snowplow/sql-runner/pull/192/files, do more neatly handle a case where we need to wrap errors.

Once we have the space to do so, we should use that package instead of the default errors package, and take any opportunities we can to improve on error reporting.

@mitar
Copy link

mitar commented Oct 9, 2023

github.com/pkg/errors has been archived and is not maintained anymore. You should maybe consider switching to something else instead as you are updating error handling?

Shameless plug: you can switch it to drop-in replacement gitlab.com/tozd/go/errors. It fixes many issues, is maintained, and supports modern Go's error patterns (sentinel errors, %w formatting, joined errors, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants