aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-18 00:38:36 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-18 00:38:36 +0100
commit9afc7bda5c1ce76ade2bfd0c91e1bd1cbbceeb44 (patch)
tree581c40157ac8c402b9b7cbf306916327e580711c /errors.go
parent2b6bb06811197142d1b0ae53127a37f76e36589a (diff)
409
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index eb486bd..9be62bf 100644
--- a/errors.go
+++ b/errors.go
@@ -4,6 +4,7 @@ import (
"encoding/json"
"errors"
"io/ioutil"
+ "log"
"net/http"
)
@@ -33,6 +34,7 @@ var urnErrors = map[string]error{
}
func handleError(r *http.Response) error {
+ log.Println("Status:", r.Status)
defer r.Body.Close()
body, err := ioutil.ReadAll(r.Body)
if err != nil {