change use of errors.Wrap to fmt.Errorf with %w verb

Closes #4603

Commands used (VIM):

```
:args `rg -l errors.Wrap`
:argdo normal @q | update
```

where q is a macros rewriting the `errors.Wrap` to `fmt.Errorf`.
This commit is contained in:
Anton Kaliaev
2020-05-12 03:35:47 +00:00
committed by GitHub
parent 8d63d7192f
commit b7b721c484
90 changed files with 321 additions and 391 deletions
+1 -2
View File
@@ -1,9 +1,8 @@
package mempool
import (
"errors"
"fmt"
"github.com/pkg/errors"
)
var (
+1 -1
View File
@@ -1,6 +1,7 @@
package mempool
import (
"errors"
"net"
"sync"
"testing"
@@ -8,7 +9,6 @@ import (
"github.com/fortytw2/leaktest"
"github.com/go-kit/kit/log/term"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/tendermint/tendermint/abci/example/kvstore"