Skip to content

Improve error message of compression.zstd.ZstdError #153621

Description

@smiRaphi

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 about what actually went wrong, my proposal is to either raise a more descriptive error or expose the raw return code in ZstdError.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions