Client: add expected errors when deleting a domain.
This commit is contained in:
parent
5147719ecb
commit
b93efac9d5
@ -74,7 +74,10 @@ class DNSManager::Client < IPC
|
|||||||
def user_domain_del(domain : String)
|
def user_domain_del(domain : String)
|
||||||
request = Request::DeleteDomain.new domain
|
request = Request::DeleteDomain.new domain
|
||||||
send_now request
|
send_now request
|
||||||
parse_message [ Response::DomainDeleted ], read
|
parse_message [ Response::DomainDeleted,
|
||||||
|
Response::DomainNotFound,
|
||||||
|
Response::NoOwnership
|
||||||
|
], read
|
||||||
end
|
end
|
||||||
|
|
||||||
# Get user domain list.
|
# Get user domain list.
|
||||||
|
Loading…
Reference in New Issue
Block a user