Title: Improve error message of `compression.zstd.ZstdError` · Issue #153621 · python/cpython · GitHub
Open Graph Title: Improve error message of `compression.zstd.ZstdError` · Issue #153621 · python/cpython
X Title: Improve error message of `compression.zstd.ZstdError` · Issue #153621 · python/cpython
Description: Feature or enhancement Proposal: When the underlying libzstd of compression.zstd encounters an error, compression.zstd only raises a vague "Unable to decompress Zstandard data: Data corruption detected" while libzstd is way more verbose ...
Open Graph Description: Feature or enhancement Proposal: When the underlying libzstd of compression.zstd encounters an error, compression.zstd only raises a vague "Unable to decompress Zstandard data: Data corruption dete...
X Description: Feature or enhancement Proposal: When the underlying libzstd of compression.zstd encounters an error, compression.zstd only raises a vague "Unable to decompress Zstandard data: Data corruption...
Opengraph URL: https://github.com/python/cpython/issues/153621
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve error message of `compression.zstd.ZstdError`","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nWhen the underlying libzstd of compression.zstd encounters an error, compression.zstd only raises a vague \"Unable to decompress Zstandard data: Data corruption detected\" while libzstd is way more verbose about what actually went wrong, my proposal is to either raise a more descriptive error or expose the raw return code in ZstdError.\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-153641\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/smiRaphi","@type":"Person","name":"smiRaphi"},"datePublished":"2026-07-12T12:48:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/153621/cpython/issues/153621"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:70508716-363b-69c8-2a3d-4e95a1f96f73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD68:1748BD:19CBDA7:25B61F8:6A563DF6 |
| html-safe-nonce | f95aa532380437c26f7f7a92881e014a5ce5f0b41960d5eba217d119f81de555 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDY4OjE3NDhCRDoxOUNCREE3OjI1QjYxRjg6NkE1NjNERjYiLCJ2aXNpdG9yX2lkIjoiNTI4MzMyMzI2NDk3NDA3NzQzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dab5c876e22719b30d65a0fe7587d984fdd1681076eb4e76594234a25450c411 |
| hovercard-subject-tag | issue:4867081745 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/153621/issue_layout |
| twitter:image | https://opengraph.githubassets.com/448cd48c7f802ad5d089c9efb732eccd0a9d38d188c25e3e457f27f91e4623a0/python/cpython/issues/153621 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/448cd48c7f802ad5d089c9efb732eccd0a9d38d188c25e3e457f27f91e4623a0/python/cpython/issues/153621 |
| og:image:alt | Feature or enhancement Proposal: When the underlying libzstd of compression.zstd encounters an error, compression.zstd only raises a vague "Unable to decompress Zstandard data: Data corruption dete... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smiRaphi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 96d96c6ad1e3234907759a5e634942d2ca0aded8a6ec1693a59d0f2c59c0dac9 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec50befe6b611eee09bfe878347d87b8d5d2443f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width