Skip to content

Commit dbdc567

Browse files
committed
chore: avoid trailing whitespace in error message
This messed with the tests, where my editor was chopping of trailing whitespace. While I'm in here, don't capitalize and parenthesize to make this line fit in better with the rest of our logging/errors.
1 parent 9c759ec commit dbdc567

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ fn component_unavailable_msg(cs: &[Component], manifest: &Manifest, toolchain: &
205205
if toolchain.starts_with("nightly") {
206206
let _ = write!(
207207
buf,
208-
"Sometimes not all components are available in any given nightly. "
208+
"(sometimes not all components are available in any given nightly)"
209209
);
210210
}
211211
}
@@ -235,7 +235,7 @@ fn component_unavailable_msg(cs: &[Component], manifest: &Manifest, toolchain: &
235235
if toolchain.starts_with("nightly") {
236236
let _ = write!(
237237
buf,
238-
"Sometimes not all components are available in any given nightly. "
238+
"(sometimes not all components are available in any given nightly)"
239239
);
240240
}
241241
}

tests/suite/cli_v2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ async fn add_missing_component() {
19721972
.with_stderr(snapbox::str![[r#"
19731973
...
19741974
error: component 'rls' for target '[HOST_TRIPLE]' is unavailable for download for channel 'nightly'
1975-
Sometimes not all components are available in any given nightly.
1975+
(sometimes not all components are available in any given nightly)
19761976
...
19771977
"#]])
19781978
.is_err();

0 commit comments

Comments
 (0)