IcingaNotification: improve error message

One more improved exception

refs #2142
This commit is contained in:
Thomas Gelf 2022-11-03 00:23:50 +01:00
parent 63d76abf81
commit b04f6b7e98
1 changed files with 1 additions and 1 deletions

View File

@ -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()
));
}