]> granicus.if.org Git - icinga2/commitdiff
Partially revert "Error messages: Properly handle livestatus/cmd pipe errors."
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 9 Sep 2014 21:46:41 +0000 (23:46 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 9 Sep 2014 21:47:27 +0000 (23:47 +0200)
This reverts commit efa8fdcb8e5cebe08c27d13e5ba27998245a5063.

refs #7160

components/compat/externalcommandlistener.cpp

index c32dd36fd611b965c71f1659a517e59a35a0e52d..9174bb9dbb67104f0798cb143ac13532fa9a453c 100644 (file)
@@ -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());
                        }
                }