Made the error message when command is not found clearer
This commit is contained in:
parent
7467ba380c
commit
01405a8c8f
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue