From 48db053184e9f8c63d20e0485c7f95403cce0075 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 12 Nov 2019 10:24:24 +0100 Subject: [PATCH] errors: Help the user to understand when nightly is in use. When adding a component to a `nightly` install, and that component is missing, indicate to the user that this is expectable. Signed-off-by: Daniel Silverstone --- src/errors.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index df92f1c8ce..7d9a073b4c 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -381,9 +381,14 @@ fn component_unavailable_msg(cs: &[Component], manifest: &Manifest, toolchain: & if cs.len() == 1 { let _ = write!( buf, - "component {} is unavailable for download for channel {}", + "component {} is unavailable for download for channel {}{}", &cs[0].description(manifest), - toolchain + toolchain, + if toolchain.starts_with("nightly") { + "\nSometimes not all components are available in any given nightly." + } else { + "" + } ); } else { let same_target = cs