Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

improve err

rustdesk4f8f34ec012d
diff --git a/src/client.rs b/src/client.rs
index 16a1cb7e7..466201436 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -283,7 +283,7 @@ impl Client {
if !key.is_empty() && !token.is_empty() {
// mainly for the security of token
- secure_tcp(&mut socket, key).await?;
+ secure_tcp(&mut socket, key).await.map_err(|e| anyhow!("Failed to secure tcp: {}", e))?;
}
let start = std::time::Instant::now();