]> granicus.if.org Git - pdns/commitdiff
GSQLBackend::list: log domain name in error
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 10:58:33 +0000 (11:58 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Mar 2019 13:34:46 +0000 (14:34 +0100)
pdns/backends/gsql/gsqlbackend.cc

index 04888a71cb75f41640968c133afccfdc3eef3414..a1cc38633faf8949d1942af58a7bfe3fb6ade585 100644 (file)
@@ -1066,7 +1066,7 @@ bool GSQLBackend::list(const DNSName &target, int domain_id, bool include_disabl
       execute();
   }
   catch(SSqlException &e) {
-    throw PDNSException("GSQLBackend list query: "+e.txtReason());
+    throw PDNSException("GSQLBackend unable to list domain '" + target.toLogString() + "': "+e.txtReason());
   }
 
   d_qname.clear();