We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f5d8d4 commit fcf1f95Copy full SHA for fcf1f95
src/tools/x/src/main.rs
@@ -41,9 +41,9 @@ fn python() -> &'static str {
41
} else if python2 {
42
PYTHON2
43
} else {
44
- // We would have returned early if we found that python is installed ...
45
- // maybe this should panic with an error instead?
46
- 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);
47
}
48
49
0 commit comments