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.
This commit is contained in:
Sergi Delgado Segura 2023-04-03 13:14:40 +01:00
parent d1edc98a85
commit c0f4ebc82c
No known key found for this signature in database
GPG key ID: 35DDB7126CCB7618

View file

@ -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);
});