Rollup merge of #100020 - CallumIO:issue-99648, r=jyn514
better error when python is not found in x - issue #99648 `x` now shows an appropriate error message and exits, when a version of `python` is not found on the users `PATH`. Resolves #99648
This commit is contained in:
commit
058ea7a955
1 changed files with 3 additions and 3 deletions
|
@ -41,9 +41,9 @@ fn python() -> &'static str {
|
|||
} else if python2 {
|
||||
PYTHON2
|
||||
} else {
|
||||
// We would have returned early if we found that python is installed ...
|
||||
// maybe this should panic with an error instead?
|
||||
PYTHON
|
||||
// Python was not found on path, so exit
|
||||
eprintln!("Unable to find python in your PATH. Please check it is installed.");
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue