diff --git a/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php index ada5841..090b883 100644 --- a/core/lib/Drupal/Core/Config/ConfigImporter.php +++ b/core/lib/Drupal/Core/Config/ConfigImporter.php @@ -7,6 +7,7 @@ namespace Drupal\Core\Config; +use Drupal\Component\Utility\String; use Drupal\Core\Config\ConfigEvents; use Drupal\Core\Config\Entity\ConfigStorageControllerInterface; use Drupal\Core\Config\Entity\ImportableEntityStorageInterface; @@ -323,7 +324,7 @@ protected function importInvokeOwner($op, $name) { // Call to the configuration entity's storage controller to handle the // configuration change. if (!($entity_storage instanceof ImportableEntityStorageInterface)) { - throw new EntityStorageException('The entity storage does not support imports'); + throw new EntityStorageException(String::format('The entity storage "@storage" for the "@entity_type" entity type does not support imports', array('@storage' => get_class($entity_storage), '@entity_type' => $entity_type))); } $entity_storage->$method($name, $new_config, $old_config); $this->setProcessed($op, $name);