From 3c335994ef7dd4369b9c9f33708b5981e6be2af9 Mon Sep 17 00:00:00 2001 From: CZECHIA-COM Date: Wed, 11 Mar 2026 07:51:28 +0100 Subject: [PATCH] Update dnsapi/dns_czechia.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- dnsapi/dns_czechia.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dnsapi/dns_czechia.sh b/dnsapi/dns_czechia.sh index 67550946..1d037521 100644 --- a/dnsapi/dns_czechia.sh +++ b/dnsapi/dns_czechia.sh @@ -97,7 +97,16 @@ dns_czechia_rm() { export _H1="Content-Type: application/json" export _H2="AuthorizationToken: $_tk" _res="$(_post "$_body" "$_url" "" "DELETE")" + _post_exit="$?" _debug2 "Response: $_res" + if [ "$_post_exit" -ne 0 ]; then + _err "CZECHIA DNS API DELETE request failed for $_fd: exit code $_post_exit, response: $_res" + return 1 + fi + if _contains "$_res" '"isError":true'; then + _err "CZECHIA DNS API reported an error while deleting TXT for $_fd: $_res" + return 1 + fi return 0 }