]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/x/src/main.rs
Rollup merge of #98775 - notriddle:notriddle/mobile-sidebar-scroll-lock, r=jsha
[rust.git] / src / tools / x / src / main.rs
index 57d548f313dae1bdfe289d00a77d90d9cb583fd9..9187c3551d7de3f1427891fd2342739c942596dc 100644 (file)
@@ -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);
     }
 }