Browse Source

Print error message on connection failure.

Konstantin Seiler 4 năm trước cách đây
mục cha
commit
37f6e3eb9c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/main.rs

+ 2 - 1
src/main.rs

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