We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6552338 commit a6b64caCopy full SHA for a6b64ca
collector/src/bin/rustc-perf-collector/main.rs
@@ -331,7 +331,8 @@ fn get_benchmarks(
331
exclude: Option<&str>,
332
) -> anyhow::Result<Vec<Benchmark>> {
333
let mut benchmarks = Vec::new();
334
- 'outer: for entry in fs::read_dir(benchmark_dir).context("failed to list benchmarks")? {
+ 'outer: for entry in fs::read_dir(benchmark_dir)
335
+ .with_context(|| format!("failed to list benchmark dir {}", benchmark_dir.display()))? {
336
let entry = entry?;
337
let path = entry.path();
338
let name = match entry.file_name().into_string() {
@@ -383,7 +384,7 @@ fn main() {
383
384
match main_result() {
385
Ok(code) => process::exit(code),
386
Err(err) => {
- eprintln!("{:#}", err);
387
+ eprintln!("{:#}\n{}", err, err.backtrace());
388
process::exit(1);
389
}
390
0 commit comments