diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php index 4766a91..a474ee1 100644 --- a/core/lib/Drupal/Core/Entity/EntityManager.php +++ b/core/lib/Drupal/Core/Entity/EntityManager.php @@ -155,7 +155,7 @@ public function getControllerClass($entity_type, $controller_type, $nested = NUL $definition = $this->getDefinition($entity_type); $definition = $definition['controllers']; if (empty($definition[$controller_type])) { - throw new \InvalidArgumentException(sprintf('The entity (%s) did not specify a %s.', $entity_type, $controller_type)); + throw new \InvalidArgumentException(sprintf('The entity (%s) did not specify a %s controller.', $entity_type, $controller_type)); } $class = $definition[$controller_type]; @@ -163,14 +163,14 @@ public function getControllerClass($entity_type, $controller_type, $nested = NUL // Some class definitions can be nested. if (isset($nested)) { if (empty($class[$nested])) { - throw new \InvalidArgumentException(sprintf("Missing '%s: %s' for entity '%s'", $controller_type, $nested, $entity_type)); + throw new \InvalidArgumentException(sprintf("Missing '%s controller: %s' for entity '%s'", $controller_type, $nested, $entity_type)); } $class = $class[$nested]; } if (!class_exists($class)) { - throw new \InvalidArgumentException(sprintf('Entity (%s) %s "%s" does not exist.', $entity_type, $controller_type, $class)); + throw new \InvalidArgumentException(sprintf('Entity (%s) %s controller "%s" does not exist.', $entity_type, $controller_type, $class)); } return $class;