git.iko.soy/typeable/oauth2-proxy
on master help sign in
Fixed wrong error message
commitcfe186d6cbdbda54ed32fd8d55092674698bc181 authorDanilo Bargen <mail@dbrgn.ch> dateTue 8 Jul 2014, 14:07 (12 years ago) parent14e845d
1 file changed+1−1
oauthproxy.go+1−1
oauthproxy.go+1−1
@@ -93,7 +93,7 @@ func apiRequest(req *http.Request) (*simplejson.Json, error) {
9393 }
9494 if resp.StatusCode != 200 {
9595 log.Printf("got response code %d - %s", resp.StatusCode, body)
96− return nil, errors.New("api request returned 200 status code")
96+ return nil, errors.New("api request returned non 200 status code")
9797 }
9898 data, err := simplejson.NewJson(body)
9999 if err != nil {