]> granicus.if.org Git - pdns/commitdiff
dnsdist: print WrongTypeException details in local console, too
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Thu, 26 Oct 2017 21:13:25 +0000 (23:13 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Thu, 26 Oct 2017 21:17:39 +0000 (23:17 +0200)
pdns/dnsdist-console.cc

index 07b1cd2237988382dc25b0bce22f99e66be175b8..3fec2cb1ba8cb2357a0e67aa279838908202b1e4 100644 (file)
@@ -242,7 +242,7 @@ void doConsole()
       }
     }
     catch(const LuaContext::WrongTypeException& e) {
-      std::cerr<<"Command returned an object we can't print"<<std::endl;
+      std::cerr<<"Command returned an object we can't print: "<<std::string(e.what())<<std::endl;
       // tried to return something we don't understand
     }
     catch(const LuaContext::ExecutionErrorException& e) {