Made the error message when command is not found clearer

This commit is contained in:
ams-hash 2021-11-07 02:48:03 +00:00
parent 7467ba380c
commit 01405a8c8f

View file

@ -72,7 +72,9 @@ fn main() {
} }
Err(e) => { Err(e) => {
previous_command = None; previous_command = None;
eprintln!("{}", e); if e.to_string() == "No such file or directory (os error 2)" {
eprintln!("{} not found", command);
}
} }
}; };
} }