From aeaac32421272a485a014e7bb41d575dbe770e11 Mon Sep 17 00:00:00 2001 From: Kerry Gallagher Date: Mon, 27 Apr 2020 11:20:43 +0100 Subject: [PATCH] Re-throw Error --- .../server/lib/alerting/log_threshold/log_threshold_executor.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts b/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts index c642779bb1f5e..cdec04ab81a8e 100644 --- a/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts +++ b/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts @@ -61,6 +61,8 @@ export const createLogThresholdExecutor = (alertUUID: string, libs: InfraBackend alertInstance.replaceState({ alertState: AlertStates.ERROR, }); + + throw new Error(e); } };