Print error message on connection failure.

This commit is contained in:
Konstantin Seiler 2020-01-29 09:51:26 +11:00
parent 65d1c1bf8e
commit 37f6e3eb9c

View file

@ -484,7 +484,8 @@ impl Future for Main {
progress = true; progress = true;
} }
Ok(Async::NotReady) => (), Ok(Async::NotReady) => (),
Err(_) => { Err(error) => {
error!("Could not connect to server: {}", error);
self.connect = Box::new(futures::future::empty()); self.connect = Box::new(futures::future::empty());
} }
} }