Skip to content

Commit

Permalink
panic message on nil ResponseCallback fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ghouscht committed Mar 22, 2018
1 parent f7d4773 commit 765db41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*htt
}()

if c.ResponseCallback == nil {
panic("CheckResponse is nil")
panic("ResponseCallback is nil")
}

resp, err = c.ResponseCallback(resp)
Expand Down

0 comments on commit 765db41

Please sign in to comment.