mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaNotification: improve error message
One more improved exception refs #2142
This commit is contained in:
parent
63d76abf81
commit
b04f6b7e98
@ -192,7 +192,7 @@ class IcingaNotification extends IcingaObject implements ExportInterface
|
|||||||
if ($this->isApplyRule()) {
|
if ($this->isApplyRule()) {
|
||||||
if (($to = $this->get('apply_to')) === null) {
|
if (($to = $this->get('apply_to')) === null) {
|
||||||
throw new RuntimeException(sprintf(
|
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()
|
$this->getObjectName()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user