Skip to content

Commit

Permalink
reverted changes in AccessError
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Nov 13, 2024
1 parent 0c69735 commit b4483f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/credentials/access_error.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package credentials

import (
"errors"
"fmt"
"io"
"reflect"
Expand Down Expand Up @@ -104,7 +103,7 @@ func AccessError(msg string, err error, opts ...authErrorOption) error {
}
buffer.WriteString("): %w")

return xerrors.WithStackTrace(xerrors.Join(errors.New(buffer.String()), err), xerrors.WithSkipDepth(1))
return xerrors.WithStackTrace(fmt.Errorf(buffer.String(), err), xerrors.WithSkipDepth(1))
}

func IsAccessError(err error) bool {
Expand Down

0 comments on commit b4483f1

Please sign in to comment.