Skip to content

Commit

Permalink
Issue drush-ops#2709: Fixed non-reporting of config-import errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Apr 18, 2017
1 parent 05d8d09 commit 9676aab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion commands/core/config.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,12 @@ function _drush_config_import(StorageComparer $storage_comparer) {
} while ($context['finished'] < 1);
}
}
drush_log('The configuration was imported successfully.', LogLevel::SUCCESS);
if ($config_importer->getErrors()) {
throw new \Drupal\Core\Config\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 9676aab

Please sign in to comment.