Skip to content

Commit

Permalink
fix(sourcebundles): Skip invalid sources
Browse files Browse the repository at this point in the history
  • Loading branch information
szokeasaurusrex committed Aug 9, 2024
1 parent 0aa576d commit 186ea0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion symbolic-debuginfo/src/sourcebundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,10 @@ where
info.set_ty(SourceFileType::Source);
info.set_path(filename.clone());

self.add_file(bundle_path, source, info)?;
if let Err(e) = self.add_file(bundle_path, source, info) {
// Skip sources that are not UTF-8
if e.kind != SourceBundleErrorKind::ReadFailed { return Err(e) };
}
}
}

Expand Down

0 comments on commit 186ea0a

Please sign in to comment.