File tree 1 file changed +3
-2
lines changed
collector/src/bin/rustc-perf-collector
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,8 @@ fn get_benchmarks(
331
331
exclude : Option < & str > ,
332
332
) -> anyhow:: Result < Vec < Benchmark > > {
333
333
let mut benchmarks = Vec :: new ( ) ;
334
- ' outer: for entry in fs:: read_dir ( benchmark_dir) . context ( "failed to list benchmarks" ) ? {
334
+ ' outer: for entry in fs:: read_dir ( benchmark_dir)
335
+ . with_context ( || format ! ( "failed to list benchmark dir {}" , benchmark_dir. display( ) ) ) ? {
335
336
let entry = entry?;
336
337
let path = entry. path ( ) ;
337
338
let name = match entry. file_name ( ) . into_string ( ) {
@@ -383,7 +384,7 @@ fn main() {
383
384
match main_result ( ) {
384
385
Ok ( code) => process:: exit ( code) ,
385
386
Err ( err) => {
386
- eprintln ! ( "{} " , err) ;
387
+ eprintln ! ( "{:#} \n {} " , err, err . backtrace ( ) ) ;
387
388
process:: exit ( 1 ) ;
388
389
}
389
390
}
You can’t perform that action at this time.
0 commit comments