Skip to content

Commit

Permalink
feat: better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-dixit committed Jun 3, 2024
1 parent b6f2ab5 commit 99db21e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composio/cli/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def _login(
# TODO: Abstract away
user_data = context.user_data
if user_data.api_key is not None:
raise click.ClickException("Already logged in!")
context.console.print("\n[green]✔ You're already logged in![/green]\n")
context.console.print("> Use [green]'composio logout'[/green] to log out and then login again")
return

context.console.print("\n[green]> Authenticating...[/green]\n")
try:
Expand Down

0 comments on commit 99db21e

Please sign in to comment.