diff --git a/core/modules/field/src/Entity/FieldConfig.php b/core/modules/field/src/Entity/FieldConfig.php
index 9f47399..bbd216f 100644
--- a/core/modules/field/src/Entity/FieldConfig.php
+++ b/core/modules/field/src/Entity/FieldConfig.php
@@ -107,7 +107,7 @@ public function __construct(array $values, $entity_type = 'field_config') {
     }
     else {
       if (empty($values['field_name'])) {
-        throw new FieldException('Attempt to create a field without a field_name.');
+        throw new FieldException("Attempt to create a field without a field_name.");
       }
       if (empty($values['entity_type'])) {
         throw new FieldException("Attempt to create a field '{$values['field_name']}' without an entity_type.");
