bug: Fix silent failures in file I/O operations #211
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#211
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Problem
File I/O operations silently swallow errors using
.unwrap_or_default(), hiding failures from users and making debugging difficult.Example from
crates/repl/src/app.rs(lines 156-162):If the file exists but cannot be read (permissions, corruption, etc.), this returns an empty string instead of reporting the error.
Impact
Affected Locations
crates/repl/src/app.rs:161- Session file reading.unwrap_or_default()on I/O operationsProposed Solution
For recoverable errors (display warning, continue):
For critical errors (propagate):
Acceptance Criteria
.unwrap_or_default()calls on I/O operationsLabels
bug, ux, medium-priority
https://github.com/navicore/patch-seq/pull/224