mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1991
State: closed
Merged: No
[FIX] Fix #1990: Handle I/O errors in Rust word file parser
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Description
This Pull Request addresses a stability issue in the Rust-based parser where the application would panic and terminate if it encountered a reading error in an external word file (such as a capitalization or profanity list).
Changes:
process_word_fileinsrc/rust/src/parser.rs: Replaced the.unwrap()call onreader.lines()with an explicitmatchstatement.Err, prints a descriptive message tostderrincluding the line number and filename, and usescontinueto proceed with the rest of the file.This ensures that a single corrupted line or an I/O hiccup does not interrupt the entire extraction process, making the tool significantly more robust for automated workflows.
Related Issue
Fixes #1990
Checklist
cargo check.docs/CHANGES.TXTwith a brief description of the fix.