(w io.Writer, err error)
| 119 | } |
| 120 | |
| 121 | func printError(w io.Writer, err error) { |
| 122 | fmt.Fprintln(w, "warning: ", err) |
| 123 | var httpErr api.HTTPError |
| 124 | if errors.As(err, &httpErr) { |
| 125 | if msg := httpErr.ScopesSuggestion(); msg != "" { |
| 126 | fmt.Fprintln(w, msg) |
| 127 | } |
| 128 | } |
| 129 | } |
no test coverage detected