Skip to content

cli: exit with an error when the operation is not supported - #5116

Draft
jlee303 wants to merge 2 commits into
devfrom
exit-error-unsupported-operation
Draft

jlee303 wants to merge 2 commits into
devfrom
exit-error-unsupported-operation

Conversation

@jlee303

@jlee303 jlee303 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

What and why
zstd-decompress and zstd-compress exit 0 on an operation they do not support, this pr sets operationResult to an 1 when these operations fail.
Added test case to verify fix works.

Checklist

  • I searched open pull requests and issues: this problem is not already being addressed.
  • Bug fix: it comes with a reproducer or a test that fails without the fix.
  • Performance change: numbers from repeated runs are included, with CPU, compiler, flags and data.
    A gain in one configuration is not a general gain: see the Performance section of CONTRIBUTING.md.
  • I stated below whether AI or other automated tools were used.

Tools used
Used claude to verify fix and write test

@meta-cla meta-cla Bot added the CLA Signed label Dec 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant