Fix assets with odd extensions and fix race condition with duplicate assets with different sources (#4436)
This commit is contained in:
1 parent
9478525dd0
commit
71b00ab171
6 files changed
+19
-10
No files matched your search
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user