diff options
author | Jakob Borg <jakob@kastelo.net> | 2022-08-16 10:01:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 10:01:49 +0200 |
commit | b10d106a55cb9e7e2da152206e4ac59fa3549c02 (patch) | |
tree | c0da081c3107540d8427f46e8651bfd77704bfcc /go.mod | |
parent | 75eeae0ee7cfd83b1363196e37d839dd8bf50c08 (diff) | |
download | syncthing-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.mod | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |