Fix regression of find with broken repos

This commit is contained in:
2021-12-02 12:43:45 +01:00
parent c66620a0fc
commit a51e5f8918
2 changed files with 33 additions and 17 deletions

View File

@@ -95,8 +95,8 @@ fn main() {
}
};
let found_repos = match grm::find_in_tree(&path) {
Ok(repos) => repos,
let (found_repos, warnings) = match grm::find_in_tree(&path) {
Ok((repos, warnings)) => (repos, warnings),
Err(error) => {
print_error(&error);
process::exit(1);
@@ -122,6 +122,9 @@ fn main() {
print!("{}", toml);
}
for warning in warnings {
print_warning(&warning);
}
}
},
cmd::SubCommand::Worktree(args) => {