Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker committed Jan 11, 2024
1 parent 056e859 commit 16c04ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/keystore/azure/key-vault-error.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"reflect"
)

// ResponseError is a wrapper around an error response from the Azure Key Vault service.
type ResponseError struct {
// ErrorCode is the error code returned by the resource provider if available.
ErrorCode string
Expand All @@ -18,6 +19,7 @@ type ResponseError struct {
errorResponse errorResponse
}

// TransportErrToResponseError converts a transport error to a ResponseError.
func TransportErrToResponseError(terr error) (*ResponseError, bool) {
if reflect.TypeOf(terr).String() == "*exported.ResponseError" {
tv := reflect.ValueOf(terr).Elem()
Expand Down

0 comments on commit 16c04ee

Please sign in to comment.