Skip to content

Commit 48db053

Browse files
committed
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 <dsilvers@digital-scurf.org>
1 parent 9a7177c commit 48db053

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/errors.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,14 @@ fn component_unavailable_msg(cs: &[Component], manifest: &Manifest, toolchain: &
381381
if cs.len() == 1 {
382382
let _ = write!(
383383
buf,
384-
"component {} is unavailable for download for channel {}",
384+
"component {} is unavailable for download for channel {}{}",
385385
&cs[0].description(manifest),
386-
toolchain
386+
toolchain,
387+
if toolchain.starts_with("nightly") {
388+
"\nSometimes not all components are available in any given nightly."
389+
} else {
390+
""
391+
}
387392
);
388393
} else {
389394
let same_target = cs

0 commit comments

Comments
 (0)