Skip to content

Commit b4483f1

Browse files
committed
reverted changes in AccessError
1 parent 0c69735 commit b4483f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/credentials/access_error.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package credentials
22

33
import (
4-
"errors"
54
"fmt"
65
"io"
76
"reflect"
@@ -104,7 +103,7 @@ func AccessError(msg string, err error, opts ...authErrorOption) error {
104103
}
105104
buffer.WriteString("): %w")
106105

107-
return xerrors.WithStackTrace(xerrors.Join(errors.New(buffer.String()), err), xerrors.WithSkipDepth(1))
106+
return xerrors.WithStackTrace(fmt.Errorf(buffer.String(), err), xerrors.WithSkipDepth(1))
108107
}
109108

110109
func IsAccessError(err error) bool {

0 commit comments

Comments
 (0)