From 0cb6e406817e64ea2914ba2c86b60198d945a5cd Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 21 Sep 2022 11:49:33 +0200 Subject: [PATCH] IcingaService: improve error message --- library/Director/Objects/IcingaService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index 43cc53a1..9479ef78 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -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() ); } }