Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Mar 17, 2024
1 parent 4e07d55 commit 2979fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def login(self, ctx: Context, clal: Optional[str] = None):
if (e := await self._verify_and_login(ctx.author.id, clal)) is None:
return await channel.send("Successfully logged in.")

msg = f"Invalid cookie: {e}"
msg = "Invalid cookie."
raise commands.BadArgument(msg)

passcode = (
Expand Down Expand Up @@ -160,7 +160,7 @@ async def login(self, ctx: Context, clal: Optional[str] = None):
content=None,
embed=discord.Embed(
title="Failed to login",
description=f"Invalid cookie: {e}",
description="Invalid cookie.",
),
)
except TimeoutError:
Expand Down

0 comments on commit 2979fc6

Please sign in to comment.