From b04f6b7e98e78073c80e058a7a14b0f186802e7f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 3 Nov 2022 00:23:50 +0100 Subject: [PATCH] IcingaNotification: improve error message One more improved exception refs #2142 --- library/Director/Objects/IcingaNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaNotification.php b/library/Director/Objects/IcingaNotification.php index 19e2897f..9c5d08d3 100644 --- a/library/Director/Objects/IcingaNotification.php +++ b/library/Director/Objects/IcingaNotification.php @@ -192,7 +192,7 @@ class IcingaNotification extends IcingaObject implements ExportInterface if ($this->isApplyRule()) { if (($to = $this->get('apply_to')) === null) { throw new RuntimeException(sprintf( - 'Applied notification "%s" has no valid object type', + 'No "apply_to" object type has been set for Applied notification "%s"', $this->getObjectName() )); }