Skip to content

Commit 690a2f5

Browse files
authored
Merge pull request #2316 from unleashed/show-nightlies-missing-components
notifications: list all missing components when skipping nightlies
2 parents 201e71f + 6a5951b commit 690a2f5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/dist/notifications.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,13 @@ impl<'a> Display for Notification<'a> {
176176
),
177177
SkippingNightlyMissingComponent(components) => write!(
178178
f,
179-
"skipping nightly which is missing installed component '{}'",
180-
components[0].short_name_in_manifest()
179+
"skipping nightly which is missing installed component{} '{}'",
180+
if components.len() > 1 { "s" } else { "" },
181+
components
182+
.iter()
183+
.map(|component| component.short_name_in_manifest().to_owned())
184+
.collect::<Vec<_>>()
185+
.join("', '")
181186
),
182187
ForcingUnavailableComponent(component) => {
183188
write!(f, "Force-skipping unavailable component '{}'", component)

0 commit comments

Comments
 (0)