Skip to content

Commit caf4a0a

Browse files
Improve domain verification error messages
Remove debug console.log statements and replace generic error messages with more descriptive text to help users troubleshoot verification issues.
1 parent 235fe34 commit caf4a0a

File tree

1 file changed

+6
-4
lines changed
  • src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/verify-[domain]

1 file changed

+6
-4
lines changed

src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain/verify-[domain]/+page.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,18 @@
5858
.forProject(page.params.region, page.params.project)
5959
.proxy.updateRuleVerification(ruleId);
6060
verified = ruleData.status === 'verified';
61-
console.log(ruleData);
62-
throw new Error('Verification failed');
61+
throw new Error(
62+
'Domain verification failed. Please check your domain settings or try again later'
63+
);
6364
} else if (isNewDomain && isCloud) {
6465
const domainData = await sdk.forConsole.domains.create(
6566
$organization.$id,
6667
page.params.domain
6768
);
6869
verified = domainData.nameservers.toLocaleLowerCase() === 'appwrite';
69-
console.log(domainData);
70-
throw new Error('Verification failed');
70+
throw new Error(
71+
'Domain verification failed. Please check your domain settings or try again later'
72+
);
7173
}
7274
7375
addNotification({

0 commit comments

Comments
 (0)