chore: update errors sub-module module path (#11832)
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ func (s *abciTestSuite) TestABCIInfoStacktrace() {
|
||||
},
|
||||
}
|
||||
|
||||
const thisTestSrc = "github.com/cosmos/cosmos-sdk/errors.(*abciTestSuite).TestABCIInfoStacktrace"
|
||||
const thisTestSrc = "cosmossdk.io/errors.(*abciTestSuite).TestABCIInfoStacktrace"
|
||||
|
||||
for testName, tc := range cases {
|
||||
_, _, log := ABCIInfo(tc.err, tc.debug)
|
||||
|
||||
@@ -3,14 +3,11 @@ package errors
|
||||
import (
|
||||
stdlib "errors"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
grpcstatus "google.golang.org/grpc/status"
|
||||
|
||||
"google.golang.org/grpc/codes"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"google.golang.org/grpc/codes"
|
||||
grpcstatus "google.golang.org/grpc/status"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type errorsTestSuite struct {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module github.com/cosmos/cosmos-sdk/errors
|
||||
module cosmossdk.io/errors
|
||||
|
||||
go 1.18
|
||||
|
||||
|
||||
@@ -48,9 +48,9 @@ func trimInternal(st errors.StackTrace) errors.StackTrace {
|
||||
// manual error creation, or runtime for caught panics
|
||||
for matchesFunc(st[0],
|
||||
// where we create errors
|
||||
"github.com/cosmos/cosmos-sdk/errors.Wrap",
|
||||
"github.com/cosmos/cosmos-sdk/errors.Wrapf",
|
||||
"github.com/cosmos/cosmos-sdk/errors.WithType",
|
||||
"cosmossdk.io/errors.Wrap",
|
||||
"cosmossdk.io/errors.Wrapf",
|
||||
"cosmossdk.io/errors.WithType",
|
||||
// runtime are added on panics
|
||||
"runtime.",
|
||||
// _test is defined in coverage tests, causing failure
|
||||
|
||||
@@ -32,8 +32,8 @@ func (s *errorsTestSuite) TestStackTrace() {
|
||||
|
||||
// Wrapping code is unwanted in the errors stack trace.
|
||||
unwantedSrc := []string{
|
||||
"github.com/cosmos/cosmos-sdk/errors.Wrap\n",
|
||||
"github.com/cosmos/cosmos-sdk/errors.Wrapf\n",
|
||||
"cosmossdk.io/errors.Wrap\n",
|
||||
"cosmossdk.io/errors.Wrapf\n",
|
||||
"runtime.goexit\n",
|
||||
}
|
||||
const thisTestSrc = "errors/stacktrace_test.go"
|
||||
|
||||
Reference in New Issue
Block a user