Skip to content

Commit

Permalink
Issue #2709: Fixed non-reporting of config-import errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Apr 18, 2017
1 parent 1acf734 commit 12a84d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Commands/config/ConfigImportCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ public function doImport($storage_comparer) {
} while ($context['finished'] < 1);
}
}
$this->logger()->success('The configuration was imported successfully.');
if ($config_importer->getErrors()) {
throw new ConfigException('Errors occurred during import');
}
else {
drush_log('The configuration was imported successfully.', LogLevel::SUCCESS);
}
}
catch (ConfigException $e) {
// Return a negative result for UI purposes. We do not differentiate
Expand Down

0 comments on commit 12a84d2

Please sign in to comment.