Skip to content

Commit 3fb17bd

Browse files
committed
only report errors when handling crate-deletes
following the same pattern as in handling other index-updates we just want to report eventual errors and continue handling the current index-commit and others.
1 parent ed07c01 commit 3fb17bd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/build_queue.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,11 @@ impl BuildQueue {
257257
}
258258

259259
Change::Deleted(krate) => {
260-
info!(
261-
"crate {} was deleted from the index and will be deleted from the database",
262-
krate
263-
);
264-
delete_crate(&mut conn, &self.storage, &self.config, krate)
265-
.with_context(|| format!("failed to delete crate {}", krate))?;
260+
match delete_crate(&mut conn, &self.storage, &self.config, krate)
261+
.with_context(|| format!("failed to delete crate {}", krate)) {
262+
Ok(_) => info!("crate {} was deleted from the index and will be deleted from the database", krate),
263+
Err(err) => report_error(&err),
264+
}
266265
}
267266
}
268267
}

0 commit comments

Comments
 (0)