From 57bb6d57dcd7b8183c35eccec6555a561efa7de7 Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Sat, 15 Jun 2024 10:58:04 +0300 Subject: [PATCH] fixup! feat(cli): allow printing selected DDS messages to the console --- yazi-dds/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yazi-dds/src/client.rs b/yazi-dds/src/client.rs index e24cfcd0..868feb84 100644 --- a/yazi-dds/src/client.rs +++ b/yazi-dds/src/client.rs @@ -1,6 +1,6 @@ use std::{collections::{HashMap, HashSet}, mem, str::FromStr}; -use anyhow::{bail, Result}; +use anyhow::{bail, Context, Result}; use parking_lot::RwLock; use serde::{Deserialize, Serialize}; use tokio::{io::AsyncWriteExt, select, sync::mpsc, task::JoinHandle, time}; @@ -71,7 +71,7 @@ impl Client { let mut lines = Self::connect_listener(&kinds).await?; loop { - match lines.next_line().await? { + match lines.next_line().await.context("Could not establish initial connection")? { Some(s) => { let kind = s.split(',').next(); if matches!(kind, Some(kind) if kinds.contains(kind)) {