]> granicus.if.org Git - pdns/commitdiff
GSQLBackend::setKind: log kind in error
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 11:38:05 +0000 (12:38 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 13:34:48 +0000 (14:34 +0100)
pdns/backends/gsql/gsqlbackend.cc

index 620861b14548e50009066e9c99f67b42e27b287e..58493cd1bffde1a3cd497d3aa106484bbb72c8f1 100644 (file)
@@ -241,7 +241,7 @@ bool GSQLBackend::setKind(const DNSName &domain, const DomainInfo::DomainKind ki
       reset();
   }
   catch (SSqlException &e) {
-    throw PDNSException("GSQLBackend unable to set kind of domain '"+domain.toLogString()+"': "+e.txtReason());
+    throw PDNSException("GSQLBackend unable to set kind of domain '"+domain.toLogString()+"' to " + toUpper(DomainInfo::getKindString(kind)) + ": "+e.txtReason());
   }
   return true;
 }