diff --git a/src/Commands/core/SiteInstallCommands.php b/src/Commands/core/SiteInstallCommands.php index 5f06818c5e..eb5d23ca3a 100644 --- a/src/Commands/core/SiteInstallCommands.php +++ b/src/Commands/core/SiteInstallCommands.php @@ -194,9 +194,10 @@ protected function determineProfile($profile, $options) // @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. if (empty($profile) && $options['existing-config']) { FileCacheFactory::setConfiguration([FileCacheFactory::DISABLE_CACHE => true]); - $source_storage = new FileStorage(Settings::get('config_sync_directory')); + $config_directory = Settings::get('config_sync_directory'); + $source_storage = new FileStorage($config_directory); if (!$source_storage->exists('core.extension')) { - throw new \Exception('Existing configuration directory not found or does not contain a core.extension.yml file.".'); + throw new \Exception(dt('Existing configuration directory @config does not contain a core.extension.yml file.', ['@config' => $config_directory])); } $config = $source_storage->read('core.extension'); $profile = $config['profile'];