From 0cf8c76617ee1113a5152bef3406989dc8c00c7a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 13 Sep 2022 10:20:24 +0200 Subject: [PATCH] IcingaObject: more details in the error message --- library/Director/Objects/IcingaObject.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index a43e1451..f03e7932 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -565,7 +565,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer } catch (NotFoundError $e) { // Hint: eventually a NotFoundError would be better throw new RuntimeException(sprintf( - 'Unable to load object referenced from %s "%s", %s', + 'Unable to load object (%s: %s) referenced from %s "%s", %s', + $short, + $this->unresolvedRelatedProperties[$name], $this->getShortTableName(), $this->getObjectName(), lcfirst($e->getMessage())