From fbce8e430a06360c4913a19f080cac5241c38065 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 9 Sep 2014 23:46:41 +0200 Subject: [PATCH] Partially revert "Error messages: Properly handle livestatus/cmd pipe errors." This reverts commit efa8fdcb8e5cebe08c27d13e5ba27998245a5063. refs #7160 --- components/compat/externalcommandlistener.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/compat/externalcommandlistener.cpp b/components/compat/externalcommandlistener.cpp index c32dd36fd..9174bb9db 100644 --- a/components/compat/externalcommandlistener.cpp +++ b/components/compat/externalcommandlistener.cpp @@ -134,9 +134,9 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath) Log(LogInformation, "ExternalCommandListener", "Executing external command: " + command); ExternalCommandProcessor::Execute(command); - } catch (const std::exception&) { + } catch (const std::exception& ex) { std::ostringstream msgbuf; - msgbuf << "External command failed."; + msgbuf << "External command failed." << DiagnosticInformation(ex); Log(LogWarning, "ExternalCommandListener", msgbuf.str()); } }