From a2c552d62e4fd6d4f90f230dfc2edf6b28cfcf2e Mon Sep 17 00:00:00 2001 From: Diego Prats Date: Thu, 12 Dec 2024 01:15:44 -0800 Subject: [PATCH] fix clippy --- clients/cli/src/connection.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clients/cli/src/connection.rs b/clients/cli/src/connection.rs index 5a4dc0d..3293b51 100644 --- a/clients/cli/src/connection.rs +++ b/clients/cli/src/connection.rs @@ -9,9 +9,8 @@ pub async fn connect_to_orchestrator( ) -> Result>, Box> { let (client, _) = tokio_tungstenite::connect_async(ws_addr) .await - .map_err(|e| { - eprintln!("\nError connecting to nexus orchestrator at: {}", ws_addr); - e + .inspect_err(|_e| { + eprintln!("Error connecting to nexus orchestrator at: {}. Nexus team has been alerted and is looking into it. Please try again later.", ws_addr); })?; Ok(client)