From: bert hubert Date: Mon, 25 Apr 2016 10:57:23 +0000 (+0200) Subject: clean up our error reporting on the console a bit, may need to happen for the remotel... X-Git-Tag: rec-4.0.0-alpha3~46^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d96df9ec8a4cffb03c64a81c1f3d953e1ce4cb70;p=thirdparty%2Fpdns.git clean up our error reporting on the console a bit, may need to happen for the remotely connected console too --- diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 0be4501986..22b128b249 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -165,16 +165,17 @@ void doConsole() feedConfigDelta(line); } catch(const LuaContext::ExecutionErrorException& e) { - std::cerr << e.what() << ": "; + std::cerr << e.what(); try { std::rethrow_if_nested(e); + std::cerr << std::endl; } catch(const std::exception& e) { // e is the exception that was thrown from inside the lambda - std::cerr << e.what() << std::endl; + std::cerr << ": " << e.what() << std::endl; } catch(const PDNSException& e) { // e is the exception that was thrown from inside the lambda - std::cerr << e.reason << std::endl; + std::cerr << ": " << e.reason << std::endl; } } catch(const std::exception& e) {