def set_errors(self):
if not self.field.errors or self.attrs.get("<STR_LIT>"):<EOL><INDENT>return<EOL><DEDENT>self.values["<STR_LIT:class>"].append("<STR_LIT:error>")<EOL>for error in self.field.errors:<EOL><INDENT>self.values["<STR_LIT>"] += ERROR_WRAPPER % {"<STR_LIT:message>": error}<EOL><DEDENT>
Set errors markup.