diff --git a/system/src/Grav/Common/Data/Blueprint.php b/system/src/Grav/Common/Data/Blueprint.php index 97ed5858a..bf1f5a32f 100644 --- a/system/src/Grav/Common/Data/Blueprint.php +++ b/system/src/Grav/Common/Data/Blueprint.php @@ -450,7 +450,8 @@ class Blueprint if (isset($field['validate']['required']) && $field['validate']['required'] === true && empty($data[$name])) { - throw new \RuntimeException("Missing required field: {$field['label']}"); + $value = isset($field['label']) ? $field['label'] : $field['name']; + throw new \RuntimeException("Missing required field: {$value}"); } } }