Skip to content

Commit b20e267

Browse files
committed
compiletest: print reason for failing to read tests
1 parent a3cfa03 commit b20e267

File tree

1 file changed

+3
-1
lines changed
  • src/tools/compiletest/src

1 file changed

+3
-1
lines changed

Diff for: src/tools/compiletest/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,9 @@ pub fn make_tests(
571571
&modified_tests,
572572
&mut poisoned,
573573
)
574-
.unwrap_or_else(|_| panic!("Could not read tests from {}", config.src_base.display()));
574+
.unwrap_or_else(|reason| {
575+
panic!("Could not read tests from {}: {reason}", config.src_base.display())
576+
});
575577

576578
if poisoned {
577579
eprintln!();

0 commit comments

Comments
 (0)