diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index b115539b4af3b..9bf427953a153 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -581,7 +581,7 @@ pub fn make_tests(config: &Config) -> Vec { &config.src_base, &PathBuf::new(), &mut tests, - ).unwrap(); + ).expect(&format!("Could not read tests from {}", config.src_base.display())); tests }