From 476f2307216796c945110e9fc5f3380bb740e9ff Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 18 Jun 2018 20:10:24 +0300 Subject: Change: if getting token gives error, show humane error message --- ick2/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ick2/client.py') 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 -- cgit v1.2.1