From c0f4ebc82cdb68e858ccfd501ec483d433a13334 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Mon, 3 Apr 2023 13:14:40 +0100 Subject: [PATCH] Makes teos-cli cannot connect to backend error message more friendly Let's not just spit a debug error when calling `teos-cli` pointing to an unreachable backend. --- teos/src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teos/src/cli.rs b/teos/src/cli.rs index eba032b..dbc345d 100644 --- a/teos/src/cli.rs +++ b/teos/src/cli.rs @@ -56,8 +56,8 @@ async fn main() { }) .connect() .await - .unwrap_or_else(|e| { - eprintln!("Could not connect to tower: {e:?}"); + .unwrap_or_else(|_| { + eprintln!("Could not connect to tower. Is teosd running?"); std::process::exit(1); });