def _write_success_info(self, metadata):
        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'])
Writes 'Iteration succeeded: yes/no', followed by the error msg
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/recorders/dump_recorder.py/DumpRecorder._write_success_info