Skip to content

Commit

Permalink
Edit error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidLenni committed Feb 13, 2022
1 parent 9f48ccb commit a4ffce5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions amari/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class NotFound(HTTPException):
def __init__(
self,
response: aiohttp.ClientResponse,
message: Optional[str] = "Guild or user was not found.",
message: Optional[str] = "404: User or Guild wasn't found.",
):
super().__init__(response, message)

Expand All @@ -43,8 +43,8 @@ class InvalidToken(HTTPException):
def __init__(self, response: aiohttp.ClientResponse, message: Optional[str] = None):
super().__init__(
response,
"Please enter a valid authentication key.\n"
"You can obtain your key at https://amaribot.com/developer/yourid",
"403: Please enter a valid authentication key.\n"
"You can obtain your key at https://amaribot.com/developer/<USERID>.",
)


Expand All @@ -54,7 +54,7 @@ class RatelimitException(HTTPException):
def __init__(
self,
response: aiohttp.ClientResponse,
message: Optional[str] = "You are being ratelimited! Try again later.",
message: Optional[str] = "429: You are being ratelimited! Try again later.",
):
super().__init__(response, message)

Expand All @@ -64,6 +64,6 @@ class AmariServerError(HTTPException):
def __init__(
self,
response: aiohttp.ClientResponse,
message: Optional[str] = "It seems like, the amari servers has a internal server error! Try again later.",
message: Optional[str] = "500: It seems like, the amari servers has a internal server error! Try again later.",
):
super().__init__(response, message)

0 comments on commit a4ffce5

Please sign in to comment.