ihabunek / toot

toot - Mastodon CLI & TUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TUI closes when a post's character limit is exceeded

thegreyshadow opened this issue · comments

Hi there, thanks for toot. Seems a really nice application.

Using 0.41.1 in Slackware-current, 64-bit. When composing a toot (a Mastodon post), exceeding the server's character limits closes the app and there's a message on the terminal (I assume it's stderr):

Error: Validation failed: Text character limit of 500 exceeded

(in this case 500 was the limit of that particular server).

All text is lost, the application quits/crashes, and one has to open the TUI again

I think the app should have refused to post but not quitting and losing text. That is, I think it should handle this error more gracefully.

Thanks in advance,

Eduardo