From b93efac9d55630dd16921dc7d2b0279cb1c69d5b Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Wed, 27 Nov 2024 14:17:03 +0100 Subject: [PATCH] Client: add expected errors when deleting a domain. --- src/client/lib/dnsmanager-client.cr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/lib/dnsmanager-client.cr b/src/client/lib/dnsmanager-client.cr index a07d514..5c7a619 100644 --- a/src/client/lib/dnsmanager-client.cr +++ b/src/client/lib/dnsmanager-client.cr @@ -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.