Show in-app errors in the status bar instead of eprintln (#8) #27
Loading…
Reference in a new issue
No description provided.
Delete branch "eric/fix-8-eprintln-in-tui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #8
Problem: errors inside the full-screen UI were printed with
eprintln!. In full-screen mode they either vanished or wrote over the screen, so you never saw why something failed.Fix: every
eprintln!insrc/handlers.rsthat runs while the UI is up now setsstatus_message, and also logs the error where it wasn't logged already. That covers:Other changes:
handle_edit_modeandhandle_torrent_search_inputnow takestatus_message, and the torrent tests pass it.Not changed:
main.rsstill useeprintln!. They happen before the terminal is set up or after it's restored, which the issue says to keep.save_configinconfig.rsstill prints its rare write-failure warning. I leftconfig.rsalone to avoid conflicts with #24.Testing:
Error: Search failed: …appeared in the status bar, the screen stayed intact, and nothing went to stderr.🤖 Generated with Claude Code
https://claude.ai/code/session_01E2XefpQijvBcJBfgzuaoWA