Log when failing to download materials
@@ -365,7 +365,15 @@ pub async fn compile_packets(db: &Database, company: &Company) -> Result<()> {
}
// Let's download the contents of their materials locally.
- download_materials_as_pdf(&drive_client, &materials_url, &employee.username).await?;
+ download_materials_as_pdf(&drive_client, &materials_url, &employee.username)
+ .await
+ .map_err(|err| {
+ log::error!(
+ "Failed to download materials for employee {} when constructing interview packets",
+ employee.id
+ );
+ err
+ })?;
}
let interviews = ApplicantInterviews::get_from_db(db, company.id).await?;
