From: Peter van Dijk Date: Thu, 1 Dec 2022 18:51:40 +0000 (+0100) Subject: auth API: slightly clearer message when a backend cannot create domains X-Git-Tag: dnsdist-1.8.0-rc1~205^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12257%2Fhead;p=thirdparty%2Fpdns.git auth API: slightly clearer message when a backend cannot create domains --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 648938d31f..67ae3ed2c8 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -1819,7 +1819,7 @@ static void apiServerZones(HttpRequest* req, HttpResponse* resp) { // no going back after this if(!B.createDomain(zonename, kind.get_value_or(DomainInfo::Native), masters.get_value_or(vector()), account.get_value_or(""))) - throw ApiException("Creating domain '"+zonename.toString()+"' failed"); + throw ApiException("Creating domain '"+zonename.toString()+"' failed: backend refused"); if(!B.getDomainInfo(zonename, di)) throw ApiException("Creating domain '"+zonename.toString()+"' failed: lookup of domain ID failed");