From fd5c856321568c4310ab5cb69490b1e247b6619c Mon Sep 17 00:00:00 2001 From: Marcelo Date: Sun, 22 Apr 2018 22:50:59 +0100 Subject: [PATCH] Show the site name (#340) * Show the site name * Fixed indentation --- src/Utils/ConfigurationManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Utils/ConfigurationManager.php b/src/Utils/ConfigurationManager.php index da7f775..0e8dd94 100644 --- a/src/Utils/ConfigurationManager.php +++ b/src/Utils/ConfigurationManager.php @@ -419,7 +419,9 @@ public function getSites() foreach ($environments as $environment => $config) { if (!array_key_exists('type', $config)) { - throw new \UnexpectedValueException("The 'type' parameter is required in sites configuration."); + throw new \UnexpectedValueException(sprintf( + "The 'type' parameter is required in sites configuration:\n %s.", $site->getPathname()) + ); } if ($config['type'] !== 'local') { if (array_key_exists('host', $config)) {