diff options
-rw-r--r-- | bridge/github/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go index 2f9b8b0a..1f9cd384 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -216,7 +216,7 @@ func requestUserVerificationCode(scope string) (map[string]string, error) { } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - return nil, fmt.Errorf("unexpected response status code from Github API:", resp.StatusCode) + return nil, fmt.Errorf("unexpected response status code %d from Github API", resp.StatusCode) } data, err := ioutil.ReadAll(resp.Body) if err != nil { @@ -257,7 +257,7 @@ func pollGithubForAuthorization(deviceCode string, intervalSec int64) (string, e } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - return "", fmt.Errorf("unexpected response status code from Github API:", resp.StatusCode) + return "", fmt.Errorf("unexpected response status code %d from Github API", resp.StatusCode) } data, err := ioutil.ReadAll(resp.Body) if err != nil { |