Skip to content

Commit

Permalink
add more logging context, try cleaning up target on restore
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Jun 2, 2023
1 parent 5e7d6c7 commit 2bc2cab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docbuilder/caching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ impl ArtifactCache {
return Ok(());
}

self.ensure_cache_exists()?;
fs::create_dir_all(target_dir.parent().unwrap())?;
fs::rename(cache_dir, target_dir).context("could not move cache directory to target")?;
self.cleanup(target_dir)?;
Ok(())
}

Expand Down

0 comments on commit 2bc2cab

Please sign in to comment.