aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.go b/client.go
index 7c5c079..7c918b9 100644
--- a/client.go
+++ b/client.go
@@ -3,7 +3,6 @@ package tamtam
import (
"bytes"
"encoding/json"
- "fmt"
"io"
"net/http"
"net/url"
@@ -48,7 +47,7 @@ func (cl *client) requestReader(method, path string, query url.Values, body io.R
if err != nil {
return nil, err
}
- return nil, fmt.Errorf("code=%s message=%s error=%s", errObj.Code, errObj.Message, errObj.Error)
+ return nil, errObj
}
return resp.Body, err
}