Skip to content

Commit fd5c856

Browse files
marcelovanijmolivas
authored andcommitted
Show the site name (#340)
* Show the site name * Fixed indentation
1 parent 8ee1af0 commit fd5c856

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Utils/ConfigurationManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ public function getSites()
419419

420420
foreach ($environments as $environment => $config) {
421421
if (!array_key_exists('type', $config)) {
422-
throw new \UnexpectedValueException("The 'type' parameter is required in sites configuration.");
422+
throw new \UnexpectedValueException(sprintf(
423+
"The 'type' parameter is required in sites configuration:\n %s.", $site->getPathname())
424+
);
423425
}
424426
if ($config['type'] !== 'local') {
425427
if (array_key_exists('host', $config)) {

0 commit comments

Comments
 (0)