gitui icon indicating copy to clipboard operation
gitui copied to clipboard

panic inside gitui silenty quits the application (certainly on windows)

Open pm100 opened this issue 1 year ago • 0 comments

Once the panic handler is installed any panic is not reported and the app just closes (it writes the log file if there is one). I suspect that the eprintln! actually writes the error details to the tui terminal but the shutdown_terminal then immediately switches away from the tui terminal buffer back to the 'normal' screen.

The fix is to call shutdown_terminal before calling log_eprint,

pm100 avatar Feb 14 '24 00:02 pm100