Made the error message when command is not found clearer
parent
67717ed8ed
commit
b4298092ed
|
@ -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 New Issue