diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-09-05 22:43:32 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-09-05 22:43:32 +0300 |
commit | 6e4ade909d9b3a0a4a8dd8c11a4b1984b84f09e4 (patch) | |
tree | 11e5e2017501f68ac9b1705edfccd6af3134a3eb /client.go | |
parent | 29322bf303815d477a83fee0e598006b651599a4 (diff) |
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |