FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-153621: Expose raw libzstd error code in `ZstdError` messages by su-213 · Pull Request #153641 · python/cpython · GitHub

Repository navigation

gh-153621: Expose raw libzstd error code in ZstdError messages - #153641

Open
su-213 wants to merge 4 commits into
python:mainfrom
su-213:zstd-error-code
Open

su-213 wants to merge 4 commits into
python:mainfrom
su-213:zstd-error-code

Conversation

su-213 commented Jul 13, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown

Include the raw error code returned by libzstd in all ZstdError messages, making it easier for users to diagnose compression and decompression issues.

Include the raw error code returned by libzstd in all ZstdError messages, making it easier for users to diagnose compression and decompression issues.

Closes #153621

Include the raw error code returned by libzstd in all ZstdError messages, making it easier for users to diagnose compression and decompression issues.

bedevere-app Bot commented Jul 13, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

python-cla-bot Bot commented Jul 13, 2026 •
edited
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

StanFromIreland changed the title gh-153621: Expose raw libzstd error codgh-153621: Expose raw libzstd error code in ZstdError messagese in ZstdError messages gh-153621: Expose raw libzstd error code in ZstdError messages Jul 13, 2026

Copy link
Copy Markdown
Member

Hi @su-213 could you please add a NEWS entry?

bedevere-app Bot added the type-feature A feature request or enhancement label Oct 22, 2026
switch (type) {
case ERR_DECOMPRESS:
msg = "Unable to decompress Zstandard data: %s";
msg = "Unable to decompress Zstandard data: %s (error code %llu)";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

To match OSError, can you format the code before the message please?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve error message of compression.zstd.ZstdError

2 participants


Back | FazBrowse Home | New Git URL