This PR changes the Error-Popup to accept raw Errors, this way we can fully log the error cause and chain to the log and also to the tui. in some more details:
move error logging from mount_error_popup to ErrorPopup::new
change both function to accept anyhow::Error instead of str
add a title to the ErrorPopup
some downsides:
the ErrorPopup is limited to 4 lines of height, meaning better printing like the following is not possible until it changes:
Some Error
Caused by:
0: Some Context
1: Some original Error
This PR changes the Error-Popup to accept raw Errors, this way we can fully log the error cause and chain to the log and also to the tui. in some more details:
mount_error_popup
toErrorPopup::new
anyhow::Error
instead ofstr
ErrorPopup
some downsides: the ErrorPopup is limited to 4 lines of height, meaning better printing like the following is not possible until it changes:
and instead printed is
(which in longer chains may get cutoff)