Permalink
Browse files

set non-zero exit status in pdnssec if an exception was thrown

  • Loading branch information...
1 parent 76d7608 commit 0c4c552da43bada5f3b4d7ebd6154791dc9ee9dd @mind04 mind04 committed with mind04 Feb 9, 2014
Showing with 3 additions and 0 deletions.
  1. +2 −0 pdns/pdnssec.cc
  2. +1 −0 regression-tests/pdns.conf
View
@@ -1774,8 +1774,10 @@ try
}
catch(PDNSException& ae) {
cerr<<"Error: "<<ae.reason<<endl;
+ return 1;
}
catch(std::exception& e) {
cerr<<"Error: "<<e.what()<<endl;
+ return 1;
}
@@ -2,3 +2,4 @@ socket-dir=./
launch=bind
bind-dnssec-db=./dnssec.sqlite3
bind-config=./named.conf
+bind-ignore-broken-records=yes

0 comments on commit 0c4c552

Please sign in to comment.