Skip to content
Snippets Groups Projects
Verified Commit f9caeefc authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2883025 by pameeela, joachim, mradcliffe: Exception messages in...

Issue #2883025 by pameeela, joachim, mradcliffe: Exception messages in FieldConfig::getFieldStorageDefinition() are inaccurate

(cherry picked from commit 1174006d)
parent 27e8fd6a
No related branches found
No related tags found
Loading
Checking pipeline status
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment