]> granicus.if.org Git - pdns/commitdiff
no longer die on zone parsing errors in bindbackend
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 7 Mar 2007 18:32:46 +0000 (18:32 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 7 Mar 2007 18:32:46 +0000 (18:32 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@966 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/backends/bind/bindbackend2.cc

index 622ee6ce01b67713607ce463762ee3c0ecea9569..059bde909df034a9495d59da2815e80fa28d9bf6 100644 (file)
@@ -549,9 +549,9 @@ void Bind2Backend::loadConfig(string* status)
            contents.clear();
            //  s_stage->id_zone_map[bbd->d_id].d_records->swap(*s_staging_zone_map[bbd->d_id].d_records);
          }
-         catch(AhuException &ae) {
+         catch(exception &ae) {
            ostringstream msg;
-           msg<<" error at "+nowTime()+" parsing '"<<i->name<<"' from file '"<<i->filename<<"': "<<ae.reason;
+           msg<<" error at "+nowTime()+" parsing '"<<i->name<<"' from file '"<<i->filename<<"': "<<ae.what();
 
            if(status)
              *status+=msg.str();
@@ -662,9 +662,9 @@ void Bind2Backend::queueReload(BB2DomainInfo *bbd)
     bbd->d_status="parsed into memory at "+nowTime();
     L<<Logger::Warning<<"Zone '"<<bbd->d_name<<"' ("<<bbd->d_filename<<") reloaded"<<endl;
   }
-  catch(AhuException &ae) {
+  catch(exception &ae) {
     ostringstream msg;
-    msg<<" error at "+nowTime()+" parsing '"<<bbd->d_name<<"' from file '"<<bbd->d_filename<<"': "<<ae.reason;
+    msg<<" error at "+nowTime()+" parsing '"<<bbd->d_name<<"' from file '"<<bbd->d_filename<<"': "<<ae.what();
     bbd->d_status=msg.str();
   }
 }