Skip to content

Commit

Permalink
improvement: better unreachable host err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodev8 committed Jan 24, 2025
1 parent bb8ddb5 commit 9fa00f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl App {
let stream = match TcpStream::connect(host) {
Ok(tcp_stream) => tcp_stream,
Err(_) => {
eprintln!("Server unreachable.");
eprintln!("Server {}:{} is unreachable. Check if the server is online.", self.address, self.port);
std::process::exit(1);
}
};
Expand Down

0 comments on commit 9fa00f6

Please sign in to comment.