From f290267893773571ef03458ed669b869b13fdaac Mon Sep 17 00:00:00 2001 From: Andreas Boesl Date: Wed, 15 Jan 2025 15:51:29 +0100 Subject: [PATCH] vue: Add generic error message for forms Change-Id: I73ef25ec260f8a9654d57deaca411f3f709f2e58 --- cmk/gui/form_specs/vue/form_spec_visitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmk/gui/form_specs/vue/form_spec_visitor.py b/cmk/gui/form_specs/vue/form_spec_visitor.py index c21baffb48d..d2234eb1c61 100644 --- a/cmk/gui/form_specs/vue/form_spec_visitor.py +++ b/cmk/gui/form_specs/vue/form_spec_visitor.py @@ -11,6 +11,7 @@ from typing import Any, TypeVar from cmk.ccc.exceptions import MKGeneralException +from cmk.ccc.i18n import _ import cmk.gui.form_specs.private.validators as private_form_specs_validators from cmk.gui.config import active_config @@ -250,7 +251,7 @@ def _process_validation_errors( first_error = validation_errors[0] raise MKUserError( "" if not first_error.location else first_error.location[-1], - first_error.message, + _("Cannot save the form because it contains errors."), )