diff options
| author | Michael Baikov <manpacket@gmail.com> | 2024-03-29 23:00:54 -0400 |
|---|---|---|
| committer | Michael Baikov <manpacket@gmail.com> | 2024-03-29 23:00:54 -0400 |
| commit | b20e267cc52d495a7617c57006644730d1ba60dc (patch) | |
| tree | 86e09da3400ad60eec1f3cc8324117cd23382dce | |
| parent | a3cfa031fa7726a957d73e6cad5744eb9706f56d (diff) | |
| download | rust-b20e267cc52d495a7617c57006644730d1ba60dc.tar.gz rust-b20e267cc52d495a7617c57006644730d1ba60dc.zip | |
compiletest: print reason for failing to read tests
| -rw-r--r-- | src/tools/compiletest/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/lib.rs b/src/tools/compiletest/src/lib.rs index b791b38379f..1624e2a6084 100644 --- a/src/tools/compiletest/src/lib.rs +++ b/src/tools/compiletest/src/lib.rs @@ -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!(); |
