Rename all errors to be prefixed with Err.

This commit is contained in:
Syfaro 2016-01-03 22:50:29 -06:00
parent 6c84cd1fbb
commit 08d7c01637
2 changed files with 3 additions and 3 deletions

2
bot.go
View file

@ -64,7 +64,7 @@ func (bot *BotAPI) MakeRequest(endpoint string, params url.Values) (APIResponse,
defer resp.Body.Close()
if resp.StatusCode == http.StatusForbidden {
return APIResponse{}, errors.New(APIForbidden)
return APIResponse{}, errors.New(ErrAPIForbidden)
}
bytes, err := ioutil.ReadAll(resp.Body)