aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2022-08-16 10:01:49 +0200
committerGitHub <noreply@github.com>2022-08-16 10:01:49 +0200
commitb10d106a55cb9e7e2da152206e4ac59fa3549c02 (patch)
treec0da081c3107540d8427f46e8651bfd77704bfcc /go.mod
parent75eeae0ee7cfd83b1363196e37d839dd8bf50c08 (diff)
downloadsyncthing-b10d106a55cb9e7e2da152206e4ac59fa3549c02.tar.gz
syncthing-b10d106a55cb9e7e2da152206e4ac59fa3549c02.zip
all: Modernize error wrapping (#8491)v1.21.0-rc.2v1.21.0
This replaces old style errors.Wrap with modern fmt.Errorf and removes the (direct) dependency on github.com/pkg/errors. A couple of cases are adjusted by hand as previously errors.Wrap(nil, ...) would return nil, which is not what fmt.Errorf does.
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod2
1 files changed, 1 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index 3d6ea7f53..b6774024c 100644
--- a/go.mod
+++ b/go.mod
@@ -37,7 +37,7 @@ require (
github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75
github.com/oschwald/geoip2-golang v1.5.0
github.com/pierrec/lz4/v4 v4.1.15
- github.com/pkg/errors v0.9.1
+ github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.12.2
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect