Made the error message when command is not found clearer

pull/4/head
ams-hash 2021-11-07 02:48:03 +00:00
parent 67717ed8ed
commit b4298092ed
1 changed files with 3 additions and 1 deletions

View File

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