Skip to content

Commit fa1ff7d

Browse files
committed
..
1 parent 9d2ae97 commit fa1ff7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/azure.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ func (e *tokenError) Error() string {
2222
return e.message
2323
}
2424

25-
func (e *tokenError) Unwrap() []error {
25+
func (e *tokenError) Unwrap() error {
2626
sdkErr, ok := apierr.ByStatusCode(e.err.StatusCode)
2727
if ok {
2828
// this is how we distinguish between bad requests and permission denies
29-
return []error{e.err, sdkErr}
29+
return sdkErr
3030
}
31-
return []error{e.err}
31+
return e.err
3232
}
3333

3434
func (c *Config) mapAzureError(defaultErr *httpclient.HttpError) error {

0 commit comments

Comments
 (0)