Skip to content

Commit fcf1f95

Browse files
committed
fix: better error when python not found in x
chore: clean comments to be relevant
1 parent 1f5d8d4 commit fcf1f95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/x/src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ fn python() -> &'static str {
4141
} else if python2 {
4242
PYTHON2
4343
} 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
44+
// Python was not found on path, so exit
45+
eprintln!("Unable to find python in your PATH. Please check it is installed.");
46+
process::exit(1);
4747
}
4848
}
4949

0 commit comments

Comments
 (0)