Skip to content

fix(command-parser): correct misleading whitespace error message#22

Merged
avifenesh merged 1 commit into
mainfrom
fix/command-parser-error-message
Apr 26, 2026
Merged

fix(command-parser): correct misleading whitespace error message#22
avifenesh merged 1 commit into
mainfrom
fix/command-parser-error-message

Conversation

@avifenesh
Copy link
Copy Markdown
Contributor

@avifenesh avifenesh commented Apr 26, 2026

Summary

  • parseCommand's post-tokenize argument check was arg.includes(' ') but the error message claimed the argument contained an invalid null byte. The null-byte check is the separate assertValidToken path, so anyone chasing this error would look in the wrong place.
  • Update the message to describe what is actually being rejected: whitespace that survived tokenization.

Test plan

  • Purely a string change - no behavior or control-flow impact.
  • No tests reference the old error string.

Note

Low Risk
The provided diff contains no file changes, so there is no functional or behavioral risk in this PR as presented.

Overview
No code changes are present in the provided diff (it only shows +++ /dev/null), so the PR appears to be a no-op as submitted.

Reviewed by Cursor Bugbot for commit 7c4bfd3. Configure here.

…check

The post-tokenize arg-validation error claimed the argument contained
an invalid null byte, but the check is arg.includes(' ') - it rejects
embedded whitespace, not null bytes. The null-byte check is the
separate assertValidToken path. Update the message to describe what is
actually being rejected so operators chasing the error find the real
cause.
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@avifenesh avifenesh merged commit 6f71444 into main Apr 26, 2026
5 checks passed
@avifenesh avifenesh deleted the fix/command-parser-error-message branch April 26, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant