MCPcopy Index your code
hub / github.com/cli/cli / addAuthError

Method addAuthError

pkg/cmd/status/status.go:607–620  ·  view source on GitHub ↗
(msg, ssoURL string)

Source from the content-addressed store, hash-verified

605}
606
607func (s *StatusGetter) addAuthError(msg, ssoURL string) {
608 s.authErrorsMu.Lock()
609 defer s.authErrorsMu.Unlock()
610
611 if s.authErrors == nil {
612 s.authErrors = set.NewStringSet()
613 }
614
615 if ssoURL != "" {
616 s.authErrors.Add(fmt.Sprintf("%s\nAuthorize in your web browser: %s", msg, ssoURL))
617 } else {
618 s.authErrors.Add(msg)
619 }
620}
621
622func (s *StatusGetter) HasAuthErrors() bool {
623 s.authErrorsMu.Lock()

Callers 2

LoadNotificationsMethod · 0.95
LoadSearchResultsMethod · 0.95

Calls 2

NewStringSetFunction · 0.92
AddMethod · 0.65

Tested by

no test coverage detected