aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
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