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

Method addAuthError

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

Source from the content-addressed store, hash-verified

609}
610
611func (s *StatusGetter) addAuthError(msg, ssoURL string) {
612 s.authErrorsMu.Lock()
613 defer s.authErrorsMu.Unlock()
614
615 if s.authErrors == nil {
616 s.authErrors = set.NewStringSet()
617 }
618
619 if ssoURL != "" {
620 s.authErrors.Add(fmt.Sprintf("%s\nAuthorize in your web browser: %s", msg, ssoURL))
621 } else {
622 s.authErrors.Add(msg)
623 }
624}
625
626func (s *StatusGetter) HasAuthErrors() bool {
627 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