cmux/CLI
Lawrence Chen 327d658069
Fix CLI v2 commands showing JSON parse error instead of actual error (#189)
When the server returns a plain-text error (e.g., "ERROR: Access denied
...") before the JSON protocol starts, sendV2() would pass it through
JSONSerialization which throws a confusing NSCocoaErrorDomain 3840 error.

Now sendV2() checks for "ERROR:" prefix and surfaces the real message.
Also includes the raw response in the fallback error for easier debugging.

Fixes https://github.com/manaflow-ai/cmux/issues/188
2026-02-20 14:53:00 -08:00
..
cmux.swift Fix CLI v2 commands showing JSON parse error instead of actual error (#189) 2026-02-20 14:53:00 -08:00