Skip to content

fix(cli): report decoding errors when reading a diff from stdin - #2

Closed
DoraC7 wants to merge 2 commits into
mainfrom
fix/cli-stdin-utf8-1
Closed

DoraC7 wants to merge 2 commits into
mainfrom
fix/cli-stdin-utf8-1

Conversation

@DoraC7

@DoraC7 DoraC7 commented Nov 21, 2026

Copy link
Copy Markdown
Owner

When reading a diff from --stdin raises UnicodeDecodeError, report
the decoding failure through argparse and exit with status 2.

Reading a diff with --stdin can raise UnicodeDecodeError and print a
Python traceback. Catch that exception and report it through argparse,
so the CLI shows which input failed to decode and exits with status 2.
Reading a diff with --stdin can raise UnicodeDecodeError and print a Python traceback. Catch that exception and report it through argparse, so the CLI shows which input failed to decode and exits with status 2.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T04:14:49.108292Z 8774977 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the bug Something isn't working label Nov 21, 2026
@DoraC7 DoraC7 closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant