Merge pull request #4 from ams-hash/clearer_err_message

Made the error message when command is not found clearer
This commit is contained in:
Able 2021-11-07 06:31:28 +03:00 committed by GitHub
commit de63f0addf

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);
}
}
};
}