From bb2ac64e376a3cb22d31f395668dd1687302a3c7 Mon Sep 17 00:00:00 2001 From: drojf <1249449+drojf@users.noreply.github.com> Date: Thu, 25 Jan 2024 22:04:42 +1100 Subject: [PATCH] Add better error message if `python` not found --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 85eaf4f..e756e3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,6 +28,9 @@ fn main() -> ExitCode { if !result.success() { + println!("Python not found! via `python`. Make sure you:"); + println!("- ticked 'Add Python to environment variables' in the python installer."); + println!("- can run 'python' in the console and get no error/the Microsoft Store does NOT appear"); println!("Failed to run python: {:?}", result); return ExitCode::FAILURE; }