mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 07:32:54 +00:00
* fix: show real error message instead of [object Object] When an error object (not a string or Error instance) reaches the error display path, String(obj) produces "[object Object]". Now extract .message from error-like objects, or JSON.stringify as fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: guard JSON.stringify fallback against undefined return JSON.stringify(undefined) returns undefined (not a string), which would crash classifyError().toLowerCase(). Add ?? 'Unknown error' fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: use non-throwing fallback for error serialization JSON.stringify can throw on circular objects or BigInt values. Wrap in try-catch to avoid losing the original error and leaving the stream stuck in a streaming state. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>