From 6e4ade909d9b3a0a4a8dd8c11a4b1984b84f09e4 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Thu, 5 Sep 2019 22:43:32 +0300 Subject: Fully refactored high level API --- client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client.go') diff --git a/client.go b/client.go index 7c918b9..83551fb 100644 --- a/client.go +++ b/client.go @@ -6,6 +6,8 @@ import ( "io" "net/http" "net/url" + + "github.com/neonxp/tamtam/schemes" ) type client struct { @@ -42,7 +44,7 @@ func (cl *client) requestReader(method, path string, query url.Values, body io.R return nil, err } if resp.StatusCode != http.StatusOK { - errObj := new(Error) + errObj := new(schemes.Error) err = json.NewDecoder(resp.Body).Decode(errObj) if err != nil { return nil, err -- cgit v1.2.3