From: bert hubert Date: Sun, 6 Mar 2016 20:02:28 +0000 (+0100) Subject: improve error message on errors emanating from gettag X-Git-Tag: rec-4.0.0-alpha2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea8c3028aaf43367caa0fcae14cd00aa7a0b9a2;p=thirdparty%2Fpdns.git improve error message on errors emanating from gettag --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 311008aa5d..9d4ace5148 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1169,7 +1169,13 @@ string* doProcessUDPQuestion(const std::string& question, const ComboAddress& fr } } } - ctag=(*t_pdl)->gettag(fromaddr, ednssubnet, destaddr, qname, qtype); + try { + ctag=(*t_pdl)->gettag(fromaddr, ednssubnet, destaddr, qname, qtype); + } + catch(std::exception& e) { + if(g_logCommonErrors) + L<