Skip to content

db/downloader: preserve writeFile error when cleanup runs#21040

Open
mk0walsk wants to merge 1 commit intoerigontech:mainfrom
mk0walsk:fix-writefile-errors-join-overwrite
Open

db/downloader: preserve writeFile error when cleanup runs#21040
mk0walsk wants to merge 1 commit intoerigontech:mainfrom
mk0walsk:fix-writefile-errors-join-overwrite

Conversation

@mk0walsk
Copy link
Copy Markdown
Contributor

@mk0walsk mk0walsk commented May 7, 2026

Preserve the original writeFile failure by joining cleanup removal errors with the existing err, preventing defer-time cleanup from masking earlier write or sync failures.

@AskAlexSharov
Copy link
Copy Markdown
Collaborator

@anacrolix i think you need to change library api to make it compile-time impossible

@AskAlexSharov AskAlexSharov enabled auto-merge May 8, 2026 01:21
@AskAlexSharov AskAlexSharov added this pull request to the merge queue May 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 8, 2026
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