Skip to content

Commit 7f9aa97

Browse files
authored
Don't stop status iter on error, log warning instead (#2821)
1 parent 463c411 commit 7f9aa97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

asyncgit/src/sync/status.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ pub fn get_status(
202202
let iter = status.into_index_worktree_iter(Vec::new())?;
203203

204204
for item in iter {
205-
let item = item?;
205+
let Ok(item) = item else {
206+
log::warn!("[status] the status iter returned an error for an item: {item:?}");
207+
208+
continue;
209+
};
206210

207211
let status = item.summary().map(Into::into);
208212

0 commit comments

Comments
 (0)