Skip to content

Commit 2620295

Browse files
committed
Improve UX
1 parent ab1198a commit 2620295

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/(console)/organization-[organization]/domains/retryDomainModal.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
2929
async function retryDomain() {
3030
try {
31+
error = null;
3132
const domain = await sdk.forConsole.domains.updateNameservers(selectedDomain.$id);
3233
if (domain.nameservers.toLowerCase() === 'appwrite') {
3334
show = false;

src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/retryDomainModal.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
});
5959
trackEvent(Submit.DomainUpdateVerification);
6060
} catch (e) {
61-
error =
62-
'Domain verification failed. Please check your domain settings or try again later';
61+
error = e.message ?? 'Domain verification failed. Please check your domain settings or try again later';
6362
trackError(e, Submit.DomainUpdateVerification);
6463
}
6564
}

0 commit comments

Comments
 (0)