They were being squelched with a triple-FIXME comment, probably from
very early in development. Now it seems clear that we just propagate
them up to an 'abort the whole Tui' error, because if that goes wrong
then surely there's a disaster too weird to recover from.
}
}
}
+impl From<std::sync::mpsc::RecvError> for TuiError {
+ fn from(err: std::sync::mpsc::RecvError) -> Self {
+ TuiError {
+ message: err.to_string(),
+ }
+ }
+}
impl std::fmt::Display for TuiError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) ->
})?;
match self.subthread_receiver.recv() {
- _e @ Err(_) => break Ok(()), // FIXME FIXME FIXME: not ok!
+ Err(e) => break 'outer Err(e.into()),
+
Ok(SubthreadEvent::TermEv(ev)) => {
match ev {
Event::Key(key) => {