Skip to content

Commit 5271741

Browse files
committed
Issue #2883025 by pameeela, joachim, mradcliffe: Exception messages in FieldConfig::getFieldStorageDefinition() are inaccurate
1 parent c351038 commit 5271741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/field/src/Entity/FieldConfig.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ public function getFieldStorageDefinition() {
313313
}
314314

315315
if (!$field_storage_definition) {
316-
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.");
316+
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.");
317317
}
318318
if (!$field_storage_definition instanceof FieldStorageConfigInterface) {
319-
throw new FieldException("Attempted to create a configurable field of non-configurable field storage {$this->field_name}.");
319+
throw new FieldException("Attempted to create, modify or delete a configurable field of non-configurable field storage {$this->field_name}.");
320320
}
321321
$this->fieldStorage = $field_storage_definition;
322322
}

0 commit comments

Comments
 (0)