Skip to content

Commit

Permalink
fix: Modify the error handling of CLIPBOARD.read_text
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemonkeys committed Jan 2, 2025
1 parent 2dcdaf7 commit 2303fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions windSend-rs/src/route/paste.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ pub async fn sync_text_handler(conn: &mut TlsStream<TcpStream>, head: RouteRecvH
Ok(text) => text,
Err(e) => {
let msg = format!("read clipboard text failed, err: {}", e);
error!("{}", msg);
let _ = resp_common_error_msg(conn, &msg).await;
return;
info!("{}", msg);
// let _ = resp_common_error_msg(conn, &msg).await;
String::new()
}
};
if let Some(body) = body {
Expand Down

0 comments on commit 2303fd3

Please sign in to comment.