Client: add expected errors when deleting a domain.

This commit is contained in:
Philippe Pittoli 2024-11-27 14:17:03 +01:00
parent 5147719ecb
commit b93efac9d5

View File

@ -74,7 +74,10 @@ class DNSManager::Client < IPC
def user_domain_del(domain : String)
request = Request::DeleteDomain.new domain
send_now request
parse_message [ Response::DomainDeleted ], read
parse_message [ Response::DomainDeleted,
Response::DomainNotFound,
Response::NoOwnership
], read
end
# Get user domain list.