Skip to content

Say why a verify or repair failed - #359

Draft
mnightingale wants to merge 5 commits into
libpar2/block-checksumsfrom
libpar2/errors
Draft

mnightingale wants to merge 5 commits into
libpar2/block-checksumsfrom
libpar2/errors

Conversation

@mnightingale

Copy link
Copy Markdown
Contributor

Adds an ErrorCode, and Par2Error with a code, a message and the file concerned, readable through GetLastError or Par2Observer::OnError. An application no longer has to parse the error stream.

Result values and the tool's exit codes are unchanged; the code refines them. A duplicate or undescribed file now gets its own code instead of a generic I/O error, and a repair before any verify returns ecNotVerified.

@mnightingale
mnightingale added this pull request to stack #362 September 23, 2026 21:35
@mnightingale
mnightingale force-pushed the libpar2/errors branch 2 times, most recently from 33e2c8d to 5320d10 Compare September 24, 2026 18:36
@mnightingale
mnightingale force-pushed the libpar2/errors branch 2 times, most recently from db094cf to 91b84a5 Compare September 24, 2026 20:53
@mnightingale
mnightingale force-pushed the libpar2/errors branch 2 times, most recently from 0eca42b to eab852a Compare September 26, 2026 20:19
@mnightingale
mnightingale force-pushed the libpar2/errors branch 2 times, most recently from 2a1872f to a9163ef Compare September 26, 2026 22:14
@mnightingale
mnightingale force-pushed the libpar2/errors branch 2 times, most recently from aeb8373 to 68a595f Compare September 27, 2026 08:00
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.

1 participant