properly show error message when entering invalid user@host

This commit is contained in:
0xf8 2023-05-29 23:50:20 -04:00
parent 013e2fab5c
commit 7d5bffce9e
Signed by: 0xf8
GPG Key ID: 446580D758689584
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ fn main() -> Result<()> {
let mut config: ConfigManager = ConfigManager::new(config_root, search_path)?;
let backend = TermionBackend::new(io::stdout().into_alternate_screen()?);
// let backend = TermionBackend::new(io::stdout()); // used for debugging
let mut term = Terminal::new(backend)?;
loop {

View File

@ -86,7 +86,7 @@ Host {host}
let split: Vec<String> = split.map(|a| a.to_string()).collect();
if split.len() < 2 {
bail!("Incorrect user@host given. Example: paul@example.com:34; <user>@<host>[:port]");
println!("Incorrect user@host given. Example: paul@example.com:34; <user>@<host>[:port]");
} else {
break split
}