Skip to content

Commit

Permalink
fix: better error when python not found in x
Browse files Browse the repository at this point in the history
chore: clean comments to be relevant
  • Loading branch information
callumio committed Aug 1, 2022
1 parent 1f5d8d4 commit fcf1f95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/x/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit fcf1f95

Please sign in to comment.