We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65315be commit 685824cCopy full SHA for 685824c
invenio_rdm_records/resources/errors.py
@@ -13,12 +13,13 @@
13
from flask import g
14
from flask_resources import HTTPJSONException as _HTTPJSONException
15
from flask_resources.serializers.json import JSONEncoder
16
+from invenio_i18n import lazy_gettext as _
17
18
19
class HTTPJSONValidationWithMessageAsListException(_HTTPJSONException):
20
"""HTTP exception serializing to JSON where errors are in a list."""
21
- description = "A validation error occurred."
22
+ description = _("A validation error occurred.")
23
24
def __init__(self, exception):
25
"""Constructor."""
0 commit comments