Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dprats committed Dec 12, 2024
1 parent b7bf1c3 commit a2c552d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clients/cli/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ pub async fn connect_to_orchestrator(
) -> Result<WebSocketStream<MaybeTlsStream<TcpStream>>, Box<dyn std::error::Error + Send + Sync>> {
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)
Expand Down

0 comments on commit a2c552d

Please sign in to comment.