From b50883b05bc72b39e0be2b6150081c8ca8473e74 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 16 Aug 2023 11:28:40 -0500 Subject: [PATCH] handle connection errors more clearly --- src/components/SetupErrorDisplay.tsx | 31 ++++++++++++++++++++++++++++ src/i18n/en/translations.ts | 4 +++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/components/SetupErrorDisplay.tsx b/src/components/SetupErrorDisplay.tsx index 36543b8f..4471ab35 100644 --- a/src/components/SetupErrorDisplay.tsx +++ b/src/components/SetupErrorDisplay.tsx @@ -33,6 +33,37 @@ export default function SetupErrorDisplay(props: { initialError: Error }) { return ( + + + + {i18n.t("error.on_boot.loading_failed.header")} + +

+ {error.name}:{" "} + {error.message} +

+ + {i18n.t( + "error.on_boot.loading_failed.services_down" + )} + + + Follow us on{" "} + + Nostr + {" "} + or{" "} + + Twitter + {" "} + for updates. + + + +
+
{i18n.t("error.on_boot.existing_tab.title")} diff --git a/src/i18n/en/translations.ts b/src/i18n/en/translations.ts index 0feb0c1f..db73cd7b 100644 --- a/src/i18n/en/translations.ts +++ b/src/i18n/en/translations.ts @@ -477,7 +477,9 @@ export default { "If your wallet seems broken, here are some tools to try to debug and repair it.", questions: "If you have any questions on what these buttons do, please", - support_link: "reach out to us for support." + support_link: "reach out to us for support.", + services_down: + "It looks like one of Mutiny's services is down. Please try again later." } } },