From 842cd13bd1dcb6ef9971fd6ff550cbca486689c2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 9 May 2018 07:52:18 -1000 Subject: [PATCH] Improve the error message when python isn't installed. --- lib/codegen/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/codegen/build.rs b/lib/codegen/build.rs index 69100ef00f..87d4b754ae 100644 --- a/lib/codegen/build.rs +++ b/lib/codegen/build.rs @@ -67,7 +67,9 @@ fn main() { .arg("--out-dir") .arg(out_dir) .status() - .expect("Failed to launch second-level build script"); + .expect( + "Failed to launch second-level build script; is python installed?", + ); if !status.success() { process::exit(status.code().unwrap()); }