Skip to content

Commit fd9e0da

Browse files
joachim-nweitzman
authored andcommitted
Removed 'not found' from error message, as that case already handled by validateConfigDir(); added checked directory to message. (#5748) (#5881)
1 parent 841bf44 commit fd9e0da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Commands/core/SiteInstallCommands.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ protected function determineProfile($profile, $options)
193193
// @todo Arguably Drupal core [$boot->getKernel()->getInstallProfile()] could do this - https://github.com/drupal/drupal/blob/8.6.x/core/lib/Drupal/Core/DrupalKernel.php#L1606 reads from DB storage but not file storage.
194194
if (empty($profile) && $options['existing-config']) {
195195
FileCacheFactory::setConfiguration([FileCacheFactory::DISABLE_CACHE => true]);
196-
$source_storage = new FileStorage(Settings::get('config_sync_directory'));
196+
$config_directory = Settings::get('config_sync_directory');
197+
$source_storage = new FileStorage($config_directory);
197198
if (!$source_storage->exists('core.extension')) {
198-
throw new \Exception('Existing configuration directory not found or does not contain a core.extension.yml file.".');
199+
throw new \Exception(dt('Existing configuration directory @config does not contain a core.extension.yml file.', ['@config' => $config_directory]));
199200
}
200201
$config = $source_storage->read('core.extension');
201202
$profile = $config['profile'];

0 commit comments

Comments
 (0)