compiletest: print reason for failing to read tests

This commit is contained in:
Michael Baikov 2024-03-29 23:00:54 -04:00
parent a3cfa031fa
commit b20e267cc5

View File

@ -571,7 +571,9 @@ pub fn make_tests(
&modified_tests, &modified_tests,
&mut poisoned, &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 { if poisoned {
eprintln!(); eprintln!();