mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
IcingaService: improve error message
This commit is contained in:
parent
76be10d0d7
commit
0cb6e40681
@ -795,7 +795,7 @@ class IcingaService extends IcingaObject implements ExportInterface
|
||||
&& $this->get('host_id') === null
|
||||
) {
|
||||
throw new InvalidArgumentException(
|
||||
'Cannot store a Service object without a related host'
|
||||
'Cannot store a Service object without a related host or set: ' . $this->getObjectName()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user