B:BD[
4.370176] → [
4.370176:370442]
error!("an error occurred during import: {:?}", e);
tx.send(StatusUpdate::with_kind(UpdateKind::Cancelled))
.await
.unwrap_or_else(|e| error!("unable to communicate error to client: {:?}", e));
// this is not an anyhow::Error, so i can't downcast_ref to SendError for
// structured checking
if e.message != "channel closed" {
error!("an error occurred during import: {:?}", e);
tx.send(StatusUpdate::with_kind(UpdateKind::Cancelled))
.await
.unwrap_or_else(|e| {
error!("unable to communicate error to client: {:?}", e)
});
} else {
debug!("channel closed: {:?}", e);
}