From 2b68cf9f6a5a84bdec7d9e58909a85bb71c313ed Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Mon, 22 Sep 2025 12:46:20 +0530 Subject: [PATCH] Add comment to empty catch block --- .../function-[function]/domains/add-domain/+page.svelte | 8 ++++++-- .../domains/add-domain/verify-[domain]/+page.svelte | 8 ++++++-- .../settings/domains/add-domain/+page.svelte | 8 ++++++-- .../domains/add-domain/verify-[domain]/+page.svelte | 8 ++++++-- .../sites/site-[site]/domains/add-domain/+page.svelte | 8 ++++++-- .../domains/add-domain/verify-[domain]/+page.svelte | 8 ++++++-- 6 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/+page.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/+page.svelte index 37ec0506e..02be4e3d1 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/+page.svelte @@ -56,7 +56,9 @@ teamId: $project.teamId, domain: apexDomain }); - } catch (error) {} + } catch (error) { + // Empty as domain creation error needs to be silent + } } try { @@ -93,7 +95,9 @@ if (isCloud) { try { await sdk.forConsole.domains.updateNameservers({ domainId: domain.$id }); - } catch (error) {} + } catch (error) { + // Empty as domain update error needs to be silent + } } } else { await goto(`${routeBase}/add-domain/verify-${domainName}?rule=${rule.$id}`); diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/verify-[domain]/+page.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/verify-[domain]/+page.svelte index 93f83f75d..8fae59c1f 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/verify-[domain]/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/verify-[domain]/+page.svelte @@ -63,7 +63,9 @@ 'Domain verification failed. Please check your domain settings or try again later' ); } - } catch (error) {} + } catch (error) { + // Empty as domain creation error needs to be silent + } try { const domain = data.domainsList.domains.find( @@ -80,7 +82,9 @@ ); } } - } catch (error) {} + } catch (error) { + // Empty as domain update error needs to be silent + } } } diff --git a/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/+page.svelte b/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/+page.svelte index 088e44984..7d1fe9553 100644 --- a/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/+page.svelte @@ -36,7 +36,9 @@ teamId: $project.teamId, domain: apexDomain }); - } catch (error) {} + } catch (error) { + // Empty as domain creation error needs to be silent + } } try { @@ -49,7 +51,9 @@ if (isCloud) { try { await sdk.forConsole.domains.updateNameservers({ domainId: domain.$id }); - } catch (error) {} + } catch (error) { + // Empty as domain update error needs to be silent + } } } else { await goto(`${routeBase}/add-domain/verify-${domainName}?rule=${rule.$id}`); diff --git a/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/verify-[domain]/+page.svelte b/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/verify-[domain]/+page.svelte index 041f123b1..cfe52b08d 100644 --- a/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/verify-[domain]/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/settings/domains/add-domain/verify-[domain]/+page.svelte @@ -65,7 +65,9 @@ 'Domain verification failed. Please check your domain settings or try again later' ); } - } catch (error) {} + } catch (error) { + // Empty as domain creation error needs to be silent + } try { const domain = data.domainsList.domains.find( @@ -82,7 +84,9 @@ ); } } - } catch (error) {} + } catch (error) { + // Empty as domain update error needs to be silent + } } } diff --git a/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/+page.svelte b/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/+page.svelte index 62cfca3c1..133bb49da 100644 --- a/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/+page.svelte @@ -66,7 +66,9 @@ teamId: $project.teamId, domain: apexDomain }); - } catch (error) {} + } catch (error) { + // Empty as domain creation error needs to be silent + } } try { @@ -103,7 +105,9 @@ if (isCloud) { try { await sdk.forConsole.domains.updateNameservers({ domainId: domain.$id }); - } catch (error) {} + } catch (error) { + // Empty as domain update error needs to be silent + } } } else { await goto(`${routeBase}/add-domain/verify-${domainName}?rule=${rule.$id}`); diff --git a/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/verify-[domain]/+page.svelte b/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/verify-[domain]/+page.svelte index 28c55f2ed..00c96cf0b 100644 --- a/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/verify-[domain]/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/verify-[domain]/+page.svelte @@ -65,7 +65,9 @@ 'Domain verification failed. Please check your domain settings or try again later' ); } - } catch (error) {} + } catch (error) { + // Empty as domain creation error needs to be silent + } try { const domain = data.domainsList.domains.find( @@ -82,7 +84,9 @@ ); } } - } catch (error) {} + } catch (error) { + // Empty as domain update error needs to be silent + } } }