Surface broken nightly errors

This commit is contained in:
nora 2025-07-03 22:20:00 +02:00
parent cfef23bc31
commit 5ec24bbfaf
5 changed files with 103 additions and 37 deletions

View file

@ -62,7 +62,7 @@ async fn background_builder_inner(db: &Db, nightly_cache: &mut NightlyCache) ->
.wrap_err_with(|| format!("building targets for toolchain {nightly}"));
if let Err(err) = result {
error!(%nightly, %mode, ?err, "Failed to build nightly");
db.finish_nightly_as_broken(&nightly, mode)
db.finish_nightly_as_broken(&nightly, mode, &format!("{err:?}"))
.await
.wrap_err("marking nightly as broken")?;
}