Skip to content

Commit f08cfac

Browse files
author
Rémy HUBSCHER
committed
@leplatrem review.
1 parent 744c0a5 commit f08cfac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

kinto_http/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ def get_bucket(self, bucket=None):
253253
except KintoException as e:
254254
error_resp_code = e.response.status_code
255255
if error_resp_code == 401:
256-
msg = ("Unauthorized. Please check that the bucket exists and "
257-
"that you have the permission to read its content.")
256+
msg = ("Unauthorized. Please authenticate or make sure the bucket "
257+
"can be read anonymously.")
258258
e = KintoException(msg, e)
259259
raise e
260260

kinto_http/tests/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def test_unexisting_bucket_raises(self):
266266
e = cm.exception
267267
self.assertEquals(e.response, exception.response)
268268
self.assertEquals(e.request, mock.sentinel.request)
269-
self.assertEquals(e.message, "test")
269+
self.assertEquals(e.message, 'test')
270270

271271
def test_unauthorized_raises_a_kinto_exception(self):
272272
# Make the next call to sess.request raise a 401.
@@ -282,8 +282,8 @@ def test_unauthorized_raises_a_kinto_exception(self):
282282
self.assertEquals(e.response, exception.response)
283283
self.assertEquals(e.request, mock.sentinel.request)
284284
self.assertEquals(e.message,
285-
"Unauthorized. Please check that the bucket exists and "
286-
"that you have the permission to read its content.")
285+
"Unauthorized. Please authenticate or make sure the bucket "
286+
"can be read anonymously.")
287287

288288
def test_http_500_raises_an_error(self):
289289
exception = KintoException()

0 commit comments

Comments
 (0)