Skip to content

Commit e87e989

Browse files
author
Rémy HUBSCHER
committed
@leplatrem review.
1 parent ac8274c commit e87e989

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

kinto_client/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ def create_collection(self, collection=None, bucket=None,
226226
except KintoException as e:
227227
if e.response.status_code == 403:
228228
msg = ("Unauthorized. Please check that the bucket exists and "
229-
"that you have the permission to create or write this "
230-
"collection.")
229+
"that you have the permission to create or write on "
230+
"this collection.")
231231
e = KintoException(msg, e)
232232
raise e
233233
return resp
@@ -299,8 +299,8 @@ def create_record(self, data, id=None, collection=None, permissions=None,
299299
except KintoException as e:
300300
if e.response.status_code == 403:
301301
msg = ("Unauthorized. Please check that the collection exists "
302-
"and that you have the permission to create or write "
303-
"this record.")
302+
"and that you have the permission to create or write on "
303+
"this collection record.")
304304
e = KintoException(msg, e)
305305
raise e
306306

kinto_client/tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def test_create_collection_raises_a_special_error_on_403(self):
414414
collection="coll")
415415
expected_msg = ("Unauthorized. Please check that the bucket exists "
416416
"and that you have the permission to create or write "
417-
"this collection.")
417+
"on this collection.")
418418
assert e.exception.message == expected_msg
419419

420420

@@ -695,5 +695,5 @@ def test_create_record_raises_a_special_error_on_403(self):
695695
data={'foo': 'bar'})
696696
expected_msg = ("Unauthorized. Please check that the collection exists"
697697
" and that you have the permission to create or write "
698-
"this record.")
698+
"on this collection record.")
699699
assert e.exception.message == expected_msg

0 commit comments

Comments
 (0)