From 58251d1fca39535949720941a43260d568e44d5d Mon Sep 17 00:00:00 2001 From: Mattia Codato Date: Thu, 23 Jul 2020 13:23:13 +0200 Subject: [PATCH] Throw an exception in case of error during ExecuteEventHandler if source is not set --- lib/icinga/clusterevents-check.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/clusterevents-check.cpp b/lib/icinga/clusterevents-check.cpp index 75baed6ab..fb5774b60 100644 --- a/lib/icinga/clusterevents-check.cpp +++ b/lib/icinga/clusterevents-check.cpp @@ -294,6 +294,8 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons double now = Utility::GetTime(); SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint); + } else { + throw ex; } } } else if (command_type == "notification_command") {