def _write_success_info(self, metadata):
        """Writes 'Iteration succeeded: yes/no', followed by the error msg
        if latest iteration didn't succeed.
        """
        self.out.write("Iteration succeeded: %s\n" %
                           'yes' if metadata['success'] else 'no')
        if not metadata['success']:
            self.out.write("Error msg: %s\n" + metadata['msg'])
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/recorders/dump_recorder.py/DumpRecorder._write_success_info/operator `%` -> `+`