Skip to content

Commit

Permalink
eh eh eh
Browse files Browse the repository at this point in the history
  • Loading branch information
javierhonduco committed Jan 8, 2025
1 parent 059c311 commit a868e43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unwind_info/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ impl UnwindInfoManager {
executable_path: &Path,
executable_id: ExecutableId,
) -> anyhow::Result<Vec<CompactUnwindRow>> {
// If there's already a file and reading failed, for example
// due to an incompatible version or any other issue.
let _ = fs::remove_file(executable_path);
let unwind_info_path = self.path_for(executable_id);
let unwind_info_writer = Writer::new(executable_path);
let mut file = BufWriter::new(File::create(unwind_info_path)?);
Expand Down

0 comments on commit a868e43

Please sign in to comment.