Skip to content

Commit

Permalink
Merge pull request #3840 from rgacogne/dnsdist-client-wrongtype-3839
Browse files Browse the repository at this point in the history
dnsdist: Catch WrongTypeException in client mode
  • Loading branch information
Habbie committed May 13, 2016
2 parents b473461 + 628377e commit 676ddce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdns/dnsdist-console.cc
Expand Up @@ -355,6 +355,10 @@ try
throw;
}
}
catch(const LuaContext::WrongTypeException& e) {
response = "Command returned an object we can't print: " +std::string(e.what()) + "\n";
// tried to return something we don't understand
}
catch(const LuaContext::ExecutionErrorException& e) {
response = "Error: " + string(e.what()) + ": ";
try {
Expand Down

0 comments on commit 676ddce

Please sign in to comment.