mononoke/fastreplay: add context on cache warmup failures

Summary: When it fails, it's better to know which repo failed.

Reviewed By: farnz

Differential Revision: D20245375

fbshipit-source-id: 9794911308dbdd67b20673857ac8b7b54f06a217
This commit is contained in:
Thomas Orozco 2020-03-04 03:12:00 -08:00 committed by Facebook Github Bot
parent e9f78e0601
commit f486c3d190

View File

@ -334,7 +334,9 @@ async fn bootstrap_repositories<'a>(
if let Some(warmup) = warmup {
info!(&logger, "Waiting for cache warmup to complete...");
warmup.await??;
warmup
.await?
.with_context(|| format!("Performing cache warmup on {}", name))?;
}
Result::<_, Error>::Ok((name, dispatcher))