File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,8 @@ def get_bucket(self, bucket=None):
253
253
except KintoException as e :
254
254
error_resp_code = e .response .status_code
255
255
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 ." )
258
258
e = KintoException (msg , e )
259
259
raise e
260
260
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def test_unexisting_bucket_raises(self):
266
266
e = cm .exception
267
267
self .assertEquals (e .response , exception .response )
268
268
self .assertEquals (e .request , mock .sentinel .request )
269
- self .assertEquals (e .message , " test" )
269
+ self .assertEquals (e .message , ' test' )
270
270
271
271
def test_unauthorized_raises_a_kinto_exception (self ):
272
272
# Make the next call to sess.request raise a 401.
@@ -282,8 +282,8 @@ def test_unauthorized_raises_a_kinto_exception(self):
282
282
self .assertEquals (e .response , exception .response )
283
283
self .assertEquals (e .request , mock .sentinel .request )
284
284
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 ." )
287
287
288
288
def test_http_500_raises_an_error (self ):
289
289
exception = KintoException ()
You can’t perform that action at this time.
0 commit comments