sassman / t-rec-rs

Blazingly fast terminal recorder that generates animated gif images for the web written in rust

Home Page:https://crates.io/crates/t-rec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle invalid window id more robust

sassman opened this issue · comments

Describe the bug
When using t-rec with an invalid window id like WINDOWID=2417444 t-rec then no error is shown until you end the recording with CTRL+D. Only then an error like this is shown:

Error: Cannot stop the recording thread

Caused by:
    sending on a closed channel

Expected behavior
an error with more details should be shown immediately on start.