Add more verbose error message
This commit is contained in:
parent
19af89c220
commit
f052c47d09
@ -55,10 +55,10 @@ class AuthView():
|
||||
else:
|
||||
break
|
||||
except telethon.errors.rpcerrorlist.FloodWaitError as err:
|
||||
self.stdscr.addstr(f"The telegram servers blocked you for too many retries ({err.seconds}s remaining). ")
|
||||
self.stdscr.addstr(f"The telegram servers blocked you for too many retries. ({err.seconds}s remaining).")
|
||||
self.stdscr.refresh()
|
||||
except Exception as e:
|
||||
self.stdscr.addstr("Incorrect phone number. ")
|
||||
self.stdscr.addstr(f"An error occured: {str(e)}")
|
||||
self.stdscr.refresh()
|
||||
self.stdscr.addstr("Now authentificate with the code telegram sent to you.")
|
||||
self.stdscr.refresh()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user