trim comments

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-09-02 18:24:47 +03:00
parent 14824e26c9
commit 34c00e945d
5 changed files with 27 additions and 70 deletions
+1 -5
View File
@@ -39,11 +39,7 @@ export function cleanError(e: unknown): string {
*/
// oxlint-disable-next-line typescript/no-base-to-string
const str = typeof e === 'string' ? e : e.toString()
/*
* Passed the original value, not `str`, so the wrapped-cause walk is
* reachable: the XRPC clients report the platform fetch failure as the
* `cause` of a generic message.
*/
// the original value, not `str`, so wrapped causes are checked
if (isNetworkError(e)) {
return t`Unable to connect. Please check your internet connection and try again.`
}