multi: use the "errors" package everywhere

Replace all usages of the "github.com/go-errors/errors" and
"github.com/pkg/errors" packages with the standard lib's "errors"
package. This ensures that error wrapping and `errors.Is` checks will
work as expected.
This commit is contained in:
Elle Mouton committed 2025-06-30 09:46:55 +02:00
1 parent 5f961e4349
commit 8cf567b948
44 files changed
+114 -109

No files matched your search

+1 -1
View File
@@ -1,10 +1,10 @@
package shachain
import (
"errors"
"reflect"
"testing"
"github.com/go-errors/errors"
"github.com/stretchr/testify/require"
)
+3 -2
View File
@@ -2,10 +2,11 @@ package shachain
import (
"encoding/binary"
"errors"
"fmt"
"io"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/go-errors/errors"
)
// Store is an interface which serves as an abstraction over data structure
@@ -117,7 +118,7 @@ func (store *RevocationStore) LookUp(v uint64) (*chainhash.Hash, error) {
return &element.hash, nil
}
return nil, errors.Errorf("unable to derive hash #%v", ind)
return nil, fmt.Errorf("unable to derive hash #%v", ind)
}
// AddNextEntry attempts to store the given hash within its internal storage in