Skip to content

fix(storage): propagate manifest and trashcan load errors in mutating commands - #1045

Merged
oldj merged 1 commit into
oldj:masterfrom
cuishuang:master
Sep 30, 2026
Merged

oldj merged 1 commit into
oldj:masterfrom
cuishuang:master

Conversation

@cuishuang

Copy link
Copy Markdown
Contributor

Manifest::load() and Trashcan::load() distinguish between a missing file and an existing file that cannot be read or parsed.

Several read-modify-write commands previously discarded those errors with unwrap_or_default(). A corrupted storage file could therefore be treated as an empty database and overwritten by a normal UI operation.

… commands

Signed-off-by: cuishuang <imcusg@gmail.com>
@oldj
oldj merged commit b7a89a3 into oldj:master Sep 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants