Skip to content

Commit

Permalink
vue: Add generic error message for forms
Browse files Browse the repository at this point in the history
Change-Id: I73ef25ec260f8a9654d57deaca411f3f709f2e58
  • Loading branch information
schnetzzz committed Jan 15, 2025
1 parent 0de05db commit f290267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmk/gui/form_specs/vue/form_spec_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."),
)


Expand Down

0 comments on commit f290267

Please sign in to comment.