Add more helpful error message

This commit is contained in:
Tulir Asokan 2022-05-27 22:47:58 +03:00
parent d4face0150
commit cc5f9141fc

View file

@ -36,6 +36,7 @@ def get_default_server() -> tuple[str | None, str | None]:
server = None server = None
if server is None: if server is None:
print(f"{Fore.RED}Default server not configured.{Fore.RESET}") 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 None, None
return server, _get_token(server) return server, _get_token(server)