We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d2ae97 commit fa1ff7dCopy full SHA for fa1ff7d
config/azure.go
@@ -22,13 +22,13 @@ func (e *tokenError) Error() string {
22
return e.message
23
}
24
25
-func (e *tokenError) Unwrap() []error {
+func (e *tokenError) Unwrap() error {
26
sdkErr, ok := apierr.ByStatusCode(e.err.StatusCode)
27
if ok {
28
// this is how we distinguish between bad requests and permission denies
29
- return []error{e.err, sdkErr}
+ return sdkErr
30
31
- return []error{e.err}
+ return e.err
32
33
34
func (c *Config) mapAzureError(defaultErr *httpclient.HttpError) error {
0 commit comments