def soft_fail(msg='<STR_LIT>'):
global _soft_ctx<EOL>if _soft_ctx:<EOL><INDENT>global _soft_err<EOL>_soft_err.append('<STR_LIT>' % msg if msg else '<STR_LIT>')<EOL>return<EOL><DEDENT>fail(msg)<EOL>
Adds error message to soft errors list if within soft assertions context.
       Either just force test failure with the given message.