From c761bae7092ee9d6e04d0aae4fb9019c6536c4fb Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 12 Jul 2013 16:34:43 +0200 Subject: [PATCH] and the AhuException in Yacc --- pdns/backends/bind/bindparser.yy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/backends/bind/bindparser.yy b/pdns/backends/bind/bindparser.yy index ac80263ef..c58bc139f 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; -- 2.49.0