Skip to content
Snippets Groups Projects
Commit 00179b2b authored by florian's avatar florian
Browse files

FIX: Only set code if there are error messages

parent e55a1e25
Branches
Tags
No related merge requests found
......@@ -3973,8 +3973,8 @@ def _evaluate_and_add_error(parent_error, ent):
elif isinstance(ent, Container):
parent_error.container = ent
parent_error.code = ent.get_errors()[0].code
if ent.get_errors() is not None:
parent_error.code = ent.get_errors()[0].code
# In the highly unusual case of more than one error
# message, attach all of them.
parent_error.msg = '\n'.join(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment