Skip to content

Commit f63ff55

Browse files
bors[bot]sanders41alallema
authored
Merge #390
390: Fix MeiliSearchApiError and MeiliSearchError double period in message r=alallema a=sanders41 ## What does this PR do? Fixes #389 ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to MeiliSearch! Co-authored-by: Paul Sanders <[email protected]> Co-authored-by: Amélie <[email protected]>
2 parents 2a2a757 + b3219e7 commit f63ff55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meilisearch/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, message: str) -> None:
1010
super().__init__(self.message)
1111

1212
def __str__(self) -> str:
13-
return f'MeiliSearchError. Error message: {self.message}.'
13+
return f'MeiliSearchError. Error message: {self.message}'
1414

1515
class MeiliSearchApiError(MeiliSearchError):
1616
"""Error sent by MeiliSearch API"""
@@ -31,7 +31,7 @@ def __init__(self, error: str, request: Response) -> None:
3131

3232
def __str__(self) -> str:
3333
if self.code and self.link:
34-
return f'MeiliSearchApiError. Error code: {self.code}. Error message: {self.message}. Error documentation: {self.link}'
34+
return f'MeiliSearchApiError. Error code: {self.code}. Error message: {self.message} Error documentation: {self.link}'
3535

3636
return f'MeiliSearchApiError. {self.message}'
3737

0 commit comments

Comments
 (0)