From: bert hubert Date: Fri, 12 Jul 2013 14:34:43 +0000 (+0200) Subject: and the AhuException in Yacc X-Git-Tag: rec-3.6.0-rc1~568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c761bae7092ee9d6e04d0aae4fb9019c6536c4fb;p=thirdparty%2Fpdns.git and the AhuException in Yacc --- diff --git a/pdns/backends/bind/bindparser.yy b/pdns/backends/bind/bindparser.yy index ac80263ef4..c58bc139fb 100644 --- a/pdns/backends/bind/bindparser.yy +++ b/pdns/backends/bind/bindparser.yy @@ -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;