]> granicus.if.org Git - pdns/commitdiff
and the AhuException in Yacc
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 12 Jul 2013 14:34:43 +0000 (16:34 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 12 Jul 2013 14:34:43 +0000 (16:34 +0200)
pdns/backends/bind/bindparser.yy

index ac80263ef43864cfa61bee708daf3262c16418aa..c58bc139fb04df6a231ea0a262419b4468ee8e90 100644 (file)
@@ -39,7 +39,7 @@ extern int linenumber;
 static void yyerror(const char *str)
 {
   extern char *current_filename;       
-  throw AhuException("Error in bind configuration '"+string(current_filename)+"' on line "+itoa(linenumber)+": "+str);
+  throw PDNSException("Error in bind configuration '"+string(current_filename)+"' on line "+itoa(linenumber)+": "+str);
 }
 
 extern FILE *yyin;
@@ -52,7 +52,7 @@ void BindParser::parse(const string &fname)
        yyin=fopen(fname.c_str(),"r");
        yyrestart(yyin);
        if(!yyin)
-               throw AhuException("Unable to open '"+fname+"': "+strerror(errno));
+               throw PDNSException("Unable to open '"+fname+"': "+strerror(errno));
 
        linenumber=1;
        parent=this;