mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Add more helpful error message
This commit is contained in:
parent
d4face0150
commit
cc5f9141fc
@ -36,6 +36,7 @@ def get_default_server() -> tuple[str | None, str | None]:
|
||||
server = None
|
||||
if server is None:
|
||||
print(f"{Fore.RED}Default server not configured.{Fore.RESET}")
|
||||
print(f"Perhaps you forgot to {Fore.CYAN}mbc login{Fore.RESET}?")
|
||||
return None, None
|
||||
return server, _get_token(server)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user