From 46fd39c51c81d78416399521d14fecb49d37dd04 Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 18 Sep 2024 15:30:44 -0400 Subject: [PATCH] Improve error messages in Repository configuration --- .../Objects/ProjectConfiguration/UpdateSource/Repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php b/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php index ca8c119..b74d84d 100644 --- a/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php +++ b/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php @@ -163,12 +163,12 @@ if($type === null) { - throw new ConfigurationException("The UpdateSource's Repository property requires 'type'"); + throw new ConfigurationException(sprintf("The UpdateSource's Repository %s property requires 'type' got '%s' instead", $name, Functions::array_bc($data, 'type'))); } if($host === null) { - throw new ConfigurationException("The UpdateSource's Repository property requires 'host'"); + throw new ConfigurationException(sprintf("The UpdateSource's Repository %s property requires 'host'", $name)); } return new self($name, $host, $type, $ssl);