From: Pieter Lexis Date: Fri, 15 Mar 2019 10:58:33 +0000 (+0100) Subject: GSQLBackend::list: log domain name in error X-Git-Tag: dnsdist-1.4.0-alpha1~53^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c0258421b3dfc4495e0a45227eaf31a546dec1a;p=thirdparty%2Fpdns.git GSQLBackend::list: log domain name in error --- diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index 04888a71cb..a1cc38633f 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -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();