From a823015dd6543b2ce183edbb8f9e0c5aae5bb5cc Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 21 Dec 2023 13:40:41 -0600 Subject: [PATCH] catch nwa error throw --- src/routes/settings/Connections.tsx | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/routes/settings/Connections.tsx b/src/routes/settings/Connections.tsx index 8b324db3..e76b2f7f 100644 --- a/src/routes/settings/Connections.tsx +++ b/src/routes/settings/Connections.tsx @@ -1,6 +1,12 @@ import { NwcProfile } from "@mutinywallet/mutiny-wasm"; import { A, useSearchParams } from "@solidjs/router"; -import { createResource, createSignal, For, Show } from "solid-js"; +import { + createResource, + createSignal, + ErrorBoundary, + For, + Show +} from "solid-js"; import { QRCodeSVG } from "solid-qr-code"; import scan from "~/assets/icons/scan.svg"; @@ -12,6 +18,7 @@ import { Collapser, ConfirmDialog, DefaultMain, + InfoBox, KeyValue, LargeHeader, MutinyWalletGuard, @@ -292,11 +299,17 @@ function Nwc() { : i18n.t("settings.connections.add_connection") } > - + ( + {e.message} + )} + > + +