]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
report errors w/o crashing
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jul 2010 16:32:38 +0000 (16:32 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jul 2010 16:32:38 +0000 (16:32 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/tags/pdns-2-9-22-x@1673 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/communicator.cc

index ee0fb406642e201378b1ea7081f6300ea85f91ba..e5f0dd0969218045c3d1e8d7363f67c67a8afafa 100644 (file)
@@ -47,7 +47,12 @@ void CommunicatorClass::retrievalLoopThread(void)
       sr=d_suckdomains.front();
       d_suckdomains.pop_front();
     }
-    suck(sr.domain,sr.master);
+    try {
+      suck(sr.domain,sr.master);
+    }
+    catch(AhuException& ae) {
+      cerr<<"Error: "<<ae.reason<<endl;
+    }
   }
 }