mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-05-18 13:14:14 +00:00
* Add distinct JSON-RPC error code for captcha rejection Previously submitRateLimitChallenge mapped CaptchaRejectedException to the generic USER_ERROR code (-1), making it indistinguishable from any other user error (bad params, unknown command, etc.). Introduce CaptchaRejectedErrorException and wire it to a new error code (-6 / CAPTCHA_REJECTED_ERROR) throughout the JSON-RPC layer. Callers can now reliably distinguish a rejected captcha token (user must obtain a fresh token) from a network failure (transient, worth retrying) or a generic argument error. The CLI exit code for this path becomes 6, consistent with the existing per-error-type exit code convention. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add exit code 6 to man page --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>