@@ -10,9 +10,12 @@ use std::path::PathBuf;
10
10
use url:: Url ;
11
11
12
12
pub const TOOLSTATE_MSG : & str =
13
- "if you require these components, please install and use the latest successful build version, \
14
- which you can find at https://rust-lang-nursery.github.io/rust-toolstate, for example.\n \
15
- rustup install nightly-2018-12-27";
13
+ "If you require these components, please install and use the latest successful build version,\n \
14
+ which you can find at https://rust-lang-nursery.github.io/rust-toolstate.\n \n After determining \
15
+ the correct date, install it with a command such as:\n \n \
16
+ rustup toolchain install nightly-2018-12-27\n \n \
17
+ Then you can use the toolchain with commands such as:\n \n \
18
+ cargo +nightly-2018-12-27 build";
16
19
17
20
error_chain ! {
18
21
links {
@@ -267,7 +270,7 @@ error_chain! {
267
270
}
268
271
RequestedComponentsUnavailable ( c: Vec <Component >, manifest: Manifest , toolchain: String ) {
269
272
description( "some requested components are unavailable to download" )
270
- display( "{} for channel '{}'" , component_unavailable_msg( & c, & manifest) , toolchain)
273
+ display( "{} for channel '{}'\n {} " , component_unavailable_msg( & c, & manifest) , toolchain, TOOLSTATE_MSG )
271
274
}
272
275
UnknownMetadataVersion ( v: String ) {
273
276
description( "unknown metadata version" )
@@ -341,19 +344,11 @@ fn component_unavailable_msg(cs: &[Component], manifest: &Manifest) -> String {
341
344
if same_target {
342
345
let mut cs_strs = cs. iter ( ) . map ( |c| format ! ( "'{}'" , c. short_name( manifest) ) ) ;
343
346
let cs_str = cs_strs. join ( ", " ) ;
344
- let _ = write ! (
345
- buf,
346
- "some components unavailable for download: {}\n {}" ,
347
- cs_str, TOOLSTATE_MSG ,
348
- ) ;
347
+ let _ = write ! ( buf, "some components unavailable for download: {}" , cs_str, ) ;
349
348
} else {
350
349
let mut cs_strs = cs. iter ( ) . map ( |c| c. description ( manifest) ) ;
351
350
let cs_str = cs_strs. join ( ", " ) ;
352
- let _ = write ! (
353
- buf,
354
- "some components unavailable for download: {}\n {}" ,
355
- cs_str, TOOLSTATE_MSG ,
356
- ) ;
351
+ let _ = write ! ( buf, "some components unavailable for download: {}" , cs_str, ) ;
357
352
}
358
353
}
359
354
0 commit comments