Add comment to empty catch block

This commit is contained in:
Khushboo Verma
2025-09-22 12:46:20 +05:30
parent 15e56c37cc
commit 2b68cf9f6a
6 changed files with 36 additions and 12 deletions
@@ -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}`);
@@ -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
}
}
}
@@ -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}`);
@@ -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
}
}
}
@@ -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}`);
@@ -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
}
}
}