Skip to content

Commit

Permalink
ACMS-1861: review feedback changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra committed Jun 23, 2023
1 parent 56d2cec commit 7193da2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions modules/acquia_cms_common/src/Commands/AcmsCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function importSiteStudioPackages() {
public function starterKit($filter = '', $options = [
'project' => self::REQ,
'format' => 'table',
]): bool|string|array {
]) {
if ($starter_kit = $this->acmsUtilityService->getStarterKit()) {
$data['starter-kit'] = $starter_kit;
$result = new PropertyList($data);
Expand All @@ -286,7 +286,6 @@ function ($key, $cellData, FormatterOptions $options, $rowData) {
return $result;
}
$this->output()->writeln('Starter-kit is not installed yet.');
return FALSE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ public function doImport(StorageComparer $storage_comparer, DrushLoggerManager $
$message = 'The import failed due to the following reasons:' . "\n";
$message .= implode("\n", $config_importer->getErrors());

Error::logException('config_import', $e);
if (version_compare(\Drupal::VERSION, '10.1', '>=')) {
Error::logException('config_import', $e);
}
else {
watchdog_exception('config_import', $e);
}
throw new \Exception($message);
}
}
Expand Down

0 comments on commit 7193da2

Please sign in to comment.