Skip to content

Commit

Permalink
compiletest: print reason for failing to read tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pacak committed Mar 30, 2024
1 parent a3cfa03 commit b20e267
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/compiletest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,9 @@ pub fn make_tests(
&modified_tests,
&mut poisoned,
)
.unwrap_or_else(|_| panic!("Could not read tests from {}", config.src_base.display()));
.unwrap_or_else(|reason| {
panic!("Could not read tests from {}: {reason}", config.src_base.display())
});

if poisoned {
eprintln!();
Expand Down

0 comments on commit b20e267

Please sign in to comment.