aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-09-05 22:43:32 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-09-05 22:43:32 +0300
commit6e4ade909d9b3a0a4a8dd8c11a4b1984b84f09e4 (patch)
tree11e5e2017501f68ac9b1705edfccd6af3134a3eb /client.go
parent29322bf303815d477a83fee0e598006b651599a4 (diff)
Fully refactored high level APIv0.3.0v0.3
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 3 insertions, 1 deletions
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