From ff3efb4e04ed2e915bda0cef3d2c7c9e4145ab34 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 30 Jul 2018 14:49:01 +0200 Subject: [PATCH] clarify error message when sysroot was not found --- src/bin/miri.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/miri.rs b/src/bin/miri.rs index e380317138a..58897541491 100644 --- a/src/bin/miri.rs +++ b/src/bin/miri.rs @@ -200,7 +200,8 @@ fn find_sysroot() -> String { _ => { option_env!("RUST_SYSROOT") .expect( - "need to specify RUST_SYSROOT env var or use rustup or multirust", + "Could not find sysroot. Either set MIRI_SYSROOT at run-time, or at \ + build-time specify RUST_SYSROOT env var or use rustup or multirust", ) .to_owned() }