Commit 3a38bef3 authored by webchick's avatar webchick

Issue #2554841 by mikeryan: FieldException message failing to embed failed field name/entity type

parent b315b3b8
...@@ -289,7 +289,7 @@ public function getFieldStorageDefinition() { ...@@ -289,7 +289,7 @@ public function getFieldStorageDefinition() {
if (!$this->fieldStorage) { if (!$this->fieldStorage) {
$fields = $this->entityManager()->getFieldStorageDefinitions($this->entity_type); $fields = $this->entityManager()->getFieldStorageDefinitions($this->entity_type);
if (!isset($fields[$this->field_name])) { if (!isset($fields[$this->field_name])) {
throw new FieldException('Attempt to create a field {$this->field_name} that does not exist on entity type {$this->entity_type}.'); throw new FieldException("Attempt to create a field {$this->field_name} that does not exist on entity type {$this->entity_type}.");
} }
if (!$fields[$this->field_name] instanceof FieldStorageConfigInterface) { if (!$fields[$this->field_name] instanceof FieldStorageConfigInterface) {
throw new FieldException("Attempt to create a configurable field of non-configurable field storage {$this->field_name}."); throw new FieldException("Attempt to create a configurable field of non-configurable field storage {$this->field_name}.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment