diff --git a/core/modules/field/src/Entity/FieldConfig.php b/core/modules/field/src/Entity/FieldConfig.php index ca59414c33060a600bcda5156d2464348c29267e..5bb7189cad623e475ea660e6836655c5744d5a7d 100644 --- a/core/modules/field/src/Entity/FieldConfig.php +++ b/core/modules/field/src/Entity/FieldConfig.php @@ -313,10 +313,10 @@ public function getFieldStorageDefinition() { } if (!$field_storage_definition) { - throw new FieldException("Attempted to create an instance of field with name {$this->field_name} on entity type {$this->entity_type} when the field storage does not exist."); + throw new FieldException("Attempted to create, modify or delete an instance of field with name {$this->field_name} on entity type {$this->entity_type} when the field storage does not exist."); } if (!$field_storage_definition instanceof FieldStorageConfigInterface) { - throw new FieldException("Attempted to create a configurable field of non-configurable field storage {$this->field_name}."); + throw new FieldException("Attempted to create, modify or delete a configurable field of non-configurable field storage {$this->field_name}."); } $this->fieldStorage = $field_storage_definition; }