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

Method addAuthError

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

Source from the content-addressed store, hash-verified

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