fix(cli): list available languages on --lang mismatch; fix telemetry truncation #24

Merged
starkSV merged 1 commit from feat/cli-error-messages into main 2026-07-12 18:14:27 +05:30

1 commit

Author SHA1 Message Date
Shekhar Vaidya
61a296b92b fix(cli): list available languages on --lang mismatch; fix telemetry truncation
Real-world telemetry showed --lang "English (United States)" failing
for several consumer products that only list "English International"
-- the exact example used in --help. The mismatch error now lists the
languages actually available, and the help text notes names vary by
product.

Also fixes truncateError to keep both head and tail of long error
strings (previously kept only the head, which for wrapped errors with
a long URL cut off the actual root cause at the end).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-12 18:13:48 +05:30