minor text changes for client

This commit is contained in:
Phuntsok Drak-pa 2018-03-21 21:48:40 +01:00
parent 60bedb7ff6
commit 76c8ece29a

View File

@ -124,7 +124,7 @@ fn exchange_with_server(stream: TcpStream) {
} }
println!( println!(
"{} <{}>:{}", "{} <{}>:{}",
date.format("%H:%M:%S").to_string().blue(), date.format("[%H:%M:%S]").to_string().blue(),
spliced_input[1].red(), spliced_input[1].red(),
msg msg
); );
@ -162,7 +162,7 @@ fn exchange_with_server(stream: TcpStream) {
})() })()
{ {
Ok(_) => { Ok(_) => {
println!("{}", ">>> Successfully left the room <<<".green()); println!("{}", ">>> Logout successful <<<".green());
} }
Err(e) => { Err(e) => {
println!("{}: {}", "Error: Function terminated too early".red(), e); println!("{}: {}", "Error: Function terminated too early".red(), e);