Improve error message in make_tests
We should use expect instead of unwrap. This commit is based on https://github.com/laumann/compiletest-rs/pull/58. Thanks to @colin-kiegel.
This commit is contained in:
parent
374ad1b006
commit
b03afd5fc4
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ pub fn make_tests(config: &Config) -> Vec<test::TestDescAndFn> {
|
|||
&config.src_base,
|
||||
&PathBuf::new(),
|
||||
&mut tests,
|
||||
).unwrap();
|
||||
).expect(&format!("Could not read tests from {}", config.src_base.display()));
|
||||
tests
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue