From 98bac6bc9f711dd841bd0868dc1c93679572c374 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 25 Oct 2016 22:45:04 +0200 Subject: [PATCH] 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. --- pdns/dnsdist-console.cc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 1306bb803..56bd5fb0c 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()<