Updating error message
This commit is contained in:
parent
9405e05d83
commit
65a48da02d
1 changed files with 4 additions and 1 deletions
|
|
@ -36,7 +36,10 @@ const DIFF_CONTEXT_SIZE: usize = 3;
|
|||
fn get_test_files(path: &Path, recursive: bool) -> Vec<PathBuf> {
|
||||
let mut files = vec![];
|
||||
if path.is_dir() {
|
||||
for entry in fs::read_dir(path).expect("Couldn't read source dir") {
|
||||
for entry in fs::read_dir(path).expect(&format!(
|
||||
"Couldn't read directory {}",
|
||||
path.to_str().unwrap()
|
||||
)) {
|
||||
let entry = entry.expect("Couldn't get DirEntry");
|
||||
let path = entry.path();
|
||||
if path.is_dir() && recursive {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue