From 59c4f41ae93e622e4d6c59e394ce866b275e5691 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 11 Jul 2022 10:26:28 -0400 Subject: [PATCH] Update exception logging when connecting --- src/utils/dashboard.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/utils/dashboard.js b/src/utils/dashboard.js index c0edca8c68..0101aa57d3 100644 --- a/src/utils/dashboard.js +++ b/src/utils/dashboard.js @@ -57,10 +57,12 @@ export async function serverAddress() { } return { - url: url, + url, config: await resp.json() }; - }).catch(() => { /* swallow errors */ }); + }).catch(error => { + console.error(error); + }); }); return Promise.all(promises).then(responses => { @@ -69,7 +71,7 @@ export async function serverAddress() { const selection = configs.find(obj => !obj.config.StartupWizardCompleted) || configs[0]; return selection?.url; }).catch(error => { - console.log(error); + console.error(error); }); }