cli: Log errors when COBs can't load

This commit is contained in:
cloudhead
2024-08-09 10:47:54 +02:00
parent 2b75045661
commit bfc949d094
4 changed files with 27 additions and 9 deletions
+7 -3
View File
@@ -29,9 +29,13 @@ pub fn run(
None => patches.list()?,
};
for patch in iter {
let Ok((id, patch)) = patch else {
// Skip patches that failed to load.
continue;
let (id, patch) = match patch {
Ok((id, patch)) => (id, patch),
Err(e) => {
// Skip patches that failed to load.
log::error!(target: "cli", "Patch load error: {e}");
continue;
}
};
if !authors.is_empty() {
if !authors.contains(patch.author().id()) {