summaryrefslogtreecommitdiffstats
path: root/src/bin/client/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bin/client/repl.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/client/repl.rs b/src/bin/client/repl.rs
index 76b149b..033fb1a 100644
--- a/src/bin/client/repl.rs
+++ b/src/bin/client/repl.rs
@@ -18,6 +18,7 @@ use zagan_bet::client::database;
18use zagan_bet::client::ui::{ 18use zagan_bet::client::ui::{
19 display_width, format_pong, host_lines, input_cursor_column, lines_to_move_up, 19 display_width, format_pong, host_lines, input_cursor_column, lines_to_move_up,
20}; 20};
21use zagan_bet::protocol::io_failure_message;
21 22
22use crate::connection::TlsStream; 23use crate::connection::TlsStream;
23 24
@@ -299,9 +300,9 @@ impl ClientState {
299 self.stream = Some(stream); 300 self.stream = Some(stream);
300 response 301 response
301 } 302 }
302 Err(_) => { 303 Err(error) => {
303 self.stream = None; 304 self.stream = None;
304 "ERROR Connection lost".to_string() 305 io_failure_message(&error).to_string()
305 } 306 }
306 } 307 }
307 } 308 }