We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0871c0e commit ceac419Copy full SHA for ceac419
crates/cargo-util/src/paths.rs
@@ -694,7 +694,8 @@ pub fn create_dir_all_excluded_from_backups_atomic(p: impl AsRef<Path>) -> Resul
694
// we can infer from it's another cargo process doing work.
695
if let Err(e) = fs::rename(tempdir.path(), path) {
696
if !path.exists() {
697
- return Err(anyhow::Error::from(e));
+ return Err(anyhow::Error::from(e))
698
+ .with_context(|| format!("failed to create directory `{}`", path.display()));
699
}
700
701
Ok(())
0 commit comments