aboutsummaryrefslogtreecommitdiff
path: root/services/domain
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-08 23:39:34 +0530
committerBobby <[email protected]>2026-03-08 23:39:34 +0530
commit3138840a8c3d16219f1bc6ba9f5232141a206892 (patch)
treedb1092ab7e27a5c7e6b341a5baf5225412fa9175 /services/domain
parent94d5561e7cc39eb2909bdc36d4ef4972cd21e56d (diff)
downloaddove-main.tar.xz
dove-main.zip
fix(domain): ensure proper formatting of error messages and add newline at end of fileHEADmain
Diffstat (limited to 'services/domain')
-rw-r--r--services/domain/domain.go2
-rw-r--r--services/domain/messages.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/services/domain/domain.go b/services/domain/domain.go
index 91ca1e9..4047ec0 100644
--- a/services/domain/domain.go
+++ b/services/domain/domain.go
@@ -162,4 +162,4 @@ func deleteAllDNSRecords(domainID uint) {
dnsRepo.DeleteMXRecordsByDomainID(domainID)
dnsRepo.DeleteTXTRecordsByDomainID(domainID)
dnsRepo.DeleteSRVRecordsByDomainID(domainID)
-} \ No newline at end of file
+}
diff --git a/services/domain/messages.go b/services/domain/messages.go
index e8b0ae3..c279511 100644
--- a/services/domain/messages.go
+++ b/services/domain/messages.go
@@ -7,8 +7,8 @@ const (
DomainHasMailboxes = "Cannot delete a domain that has mailboxes. Remove all mailboxes first."
DomainNameInvalid = "Domain name must contain only lowercase letters, numbers, and hyphens."
DomainNameRequired = "Domain name is required."
- DomainNotFound = "Domain not found."
- DomainTLDRequired = "A TLD must be selected for the domain."
+ DomainNotFound = "Domain not found."
+ DomainTLDRequired = "A TLD must be selected for the domain."
TLDAlreadyExists = "A TLD with this name already exists."
TLDCreationFailed = "Failed to create TLD."
TLDDeletionFailed = "Failed to delete TLD."