From 7b2b50392b591489dd2a805065e7f98589fb0666 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 26 Oct 2024 19:08:47 +0530 Subject: [PATCH] fix: error handle --- src/components/organisms/ProxyForm.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/organisms/ProxyForm.tsx b/src/components/organisms/ProxyForm.tsx index 5d10b793..5034ab5f 100644 --- a/src/components/organisms/ProxyForm.tsx +++ b/src/components/organisms/ProxyForm.tsx @@ -80,9 +80,12 @@ const ProxyForm: React.FC = () => { const response = await sendProxyConfig(proxyConfigForm); if (response) { notify('success', 'Proxy configuration submitted successfully'); + } else { + notify('error', `Failed to submit proxy configuration. Try again. ${response}`); + console.log(`Failed to submit proxy configuration. Try again. ${response}`) } } catch (error: any) { - notify('error', error); + notify('Failed to submit proxy configuration', error); } };