IcingaService: improve error message

This commit is contained in:
Thomas Gelf 2022-09-21 11:49:33 +02:00
parent 76be10d0d7
commit 0cb6e40681

View File

@ -795,7 +795,7 @@ class IcingaService extends IcingaObject implements ExportInterface
&& $this->get('host_id') === null && $this->get('host_id') === null
) { ) {
throw new InvalidArgumentException( 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()
); );
} }
} }