]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clean up our error reporting on the console a bit, may need to happen for the remotel...
authorbert hubert <bert.hubert@powerdns.com>
Mon, 25 Apr 2016 10:57:23 +0000 (12:57 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Mon, 25 Apr 2016 10:57:23 +0000 (12:57 +0200)
pdns/dnsdist-console.cc

index 0be4501986c574a5035828adfc257855b6f185c7..22b128b249fb4006174b0ade11acb3751ffae42d 100644 (file)
@@ -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) {