Fix assets with odd extensions and fix race condition with duplicate assets with different sources (#4436)

This commit is contained in:
Evan Almloff authored and GitHub committed 2025-07-18 11:08:18 -07:00
1 parent 9478525dd0
commit 71b00ab171
6 files changed
+19 -10

No files matched your search

+2 -1
View File
@@ -97,7 +97,8 @@ pub(crate) fn process_file_to_with_options(
}
// If everything was successful, rename the temp file to the final output path
std::fs::rename(temp_path, output_path).context("Failed to rename output file")?;
std::fs::rename(temp_path, output_path)
.with_context(|| format!("Failed to rename output file to: {}", output_path.display()))?;
Ok(())
}