@@ -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.`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user