Skip to content

Commit 7d38790

Browse files
Warn if no benchmarks selected
1 parent 5ff9940 commit 7d38790

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

collector/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ fn get_benchmarks(
343343
benchmarks.push(Benchmark::new(name, path)?);
344344
}
345345
benchmarks.sort_by_key(|benchmark| benchmark.name.clone());
346+
347+
if benchmarks.is_empty() {
348+
eprintln!("Warning: no benchmarks selected! Try less strict filters.");
349+
}
350+
346351
Ok(benchmarks)
347352
}
348353

0 commit comments

Comments
 (0)