From 36c3154f03b1aa419177fefd287f8e96ec5fd618 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Thu, 29 Feb 2024 09:30:57 +0000 Subject: [PATCH] Issue #3419107 by Keshav Patel, Chi: FieldConfigEditForm::save should report exceptions using warning or error messages --- core/modules/field_ui/src/Form/FieldConfigEditForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/field_ui/src/Form/FieldConfigEditForm.php b/core/modules/field_ui/src/Form/FieldConfigEditForm.php index 647f0d62aa91..c374d0ae6cbf 100644 --- a/core/modules/field_ui/src/Form/FieldConfigEditForm.php +++ b/core/modules/field_ui/src/Form/FieldConfigEditForm.php @@ -451,7 +451,7 @@ public function save(array $form, FormStateInterface $form_state) { } } catch (\Exception $e) { - $this->messenger()->addStatus( + $this->messenger()->addError( $this->t( 'Attempt to update field %label failed: %message.', [ -- GitLab