mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Add comment to empty catch block
This commit is contained in:
+6
-2
@@ -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}`);
|
||||
|
||||
+6
-2
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -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}`);
|
||||
|
||||
+6
-2
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -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}`);
|
||||
|
||||
+6
-2
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user