From: bert hubert Date: Tue, 25 Oct 2016 20:45:04 +0000 (+0200) Subject: with this commit we pretty up an otherwise bloody useless error on typing: newServer... X-Git-Tag: dnsdist-1.1.0-beta2~52^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4632%2Fhead;p=thirdparty%2Fpdns.git with this commit we pretty up an otherwise bloody useless error on typing: newServer({"1.2.3.4", pool="primary"}). We do so in a pretty ugly way though. The cause of the error is deep in the bowels of Lua and/or LuaWrapper. Even if we caught/fixed this error in a more karmic place, we'd still want to output this error message. Also, dragons live there. --- diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 1306bb8033..56bd5fb0c9 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -186,7 +186,6 @@ void doConsole() > > >(withReturn ? ("return "+line) : line); - if(ret) { if (const auto strValue = boost::get>(&*ret)) { cout<<(*strValue)->getName()<