diff options
Diffstat (limited to 'src/view/lib/strings.ts')
-rw-r--r-- | src/view/lib/strings.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view/lib/strings.ts b/src/view/lib/strings.ts index e47863d50..214bb51d6 100644 --- a/src/view/lib/strings.ts +++ b/src/view/lib/strings.ts @@ -98,6 +98,9 @@ export function enforceLen(str: string, len: number): string { } export function cleanError(str: string): string { + if (str.includes('Network request failed')) { + return 'Unable to connect. Please check your internet connection and try again.' + } if (str.startsWith('Error: ')) { return str.slice('Error: '.length) } |