Fix example selection (#4045)

This commit is contained in:
Dániel Buga 2025-09-04 13:22:08 +02:00 committed by GitHub
parent 7305bc08dc
commit 227ad1fced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ pub fn examples(workspace: &Path, mut args: ExamplesArgs, action: CargoAction) -
// Only keep the example the user wants
filtered.retain(|ex| ex.matches_name(example));
if examples.is_empty() {
if filtered.is_empty() {
log::warn!(
"Example '{example}' not found or unsupported for the given chip. Please select one of the existing examples in the desired package."
);