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:
commit
de63f0addf
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue