fix: error handle

This commit is contained in:
karishmas6
2024-10-26 19:08:47 +05:30
parent 034e9c2f71
commit 7b2b50392b

View File

@@ -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);
}
};