summaryrefslogtreecommitdiff
path: root/ick2/client.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-06-18 20:10:24 +0300
committerLars Wirzenius <liw@liw.fi>2018-06-18 20:10:24 +0300
commit476f2307216796c945110e9fc5f3380bb740e9ff (patch)
treecea1efb9968c7354f42ce9d43693c6be20260dac /ick2/client.py
parentbb3a2df1a82cfd20477964e9cc8c26a1d4c33ae5 (diff)
downloadick2-476f2307216796c945110e9fc5f3380bb740e9ff.tar.gz
Change: if getting token gives error, show humane error message
Diffstat (limited to 'ick2/client.py')
-rw-r--r--ick2/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ick2/client.py b/ick2/client.py
index dff3dc3..2b1318c 100644
--- a/ick2/client.py
+++ b/ick2/client.py
@@ -123,7 +123,7 @@ class HttpAPI:
r = func(url, headers=headers, verify=self._verify, **kwargs)
if not r.ok:
- raise HttpError(r.status_code)
+ raise HttpError('{}: {}'.format(r.status_code, r.text))
return r