]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
improve sdig error reporting (was an ABORT), closes #3517
authorbert hubert <bert.hubert@netherlabs.nl>
Sun, 6 Mar 2016 18:33:42 +0000 (19:33 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sun, 6 Mar 2016 18:33:42 +0000 (19:33 +0100)
pdns/sdig.cc

index fec4290b9f742ec5a182fa4b96015a931cab7b8b..1b425a8ce85333ea7b41513b880d946177d89e45 100644 (file)
@@ -184,9 +184,12 @@ try
     }
 
   }
-
 }
 catch(std::exception &e)
 {
   cerr<<"Fatal: "<<e.what()<<endl;
 }
+catch(PDNSException &e)
+{
+  cerr<<"Fatal: "<<e.reason<<endl;
+}