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