MCPcopy Create free account
hub / github.com/cli/cli / refreshStorageErrorKind

Function refreshStorageErrorKind

internal/config/refreshable_telemetry.go:106–116  ·  view source on GitHub ↗

refreshStorageErrorKind classifies a credential storage error for the storage_error dimension.

(err error)

Source from the content-addressed store, hash-verified

104
105// refreshStorageErrorKind classifies a credential storage error for the storage_error dimension.
106func refreshStorageErrorKind(err error) string {
107 var timeoutErr *keyring.TimeoutError
108 switch {
109 case err == nil:
110 return refreshStorageErrorNone
111 case errors.As(err, &timeoutErr):
112 return refreshStorageErrorTimeout
113 default:
114 return refreshStorageErrorFailed
115 }
116}
117
118func refreshStorageType(secure bool) string {
119 if secure {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected