def handle_error(self):
if not self.tasks:<EOL><INDENT>return<EOL><DEDENT>self.mark_parent_tasks_as_failed(<EOL>self.cur_task,<EOL>flush_logs=True,<EOL>)<EOL>for index, task in enumerate(self.tasks.values()):<EOL><INDENT>if self.should_show_by_depth(index + <NUM_LIT:1>):<EOL><INDENT>continue<EOL><DEDENT>start_task_header = logging.LogRecord(<EOL>'<STR_LIT>', logging.INFO, '<STR_LIT>', <NUM_LIT:0>, '<STR_LIT>', [], None<EOL>)<EOL>start_task_header.msg = ColorFormatter.colored(<EOL>'<STR_LIT:default>',<EOL>START_TASK_MSG,<EOL>)<EOL>start_task_header.task = task.name<EOL>self.pretty_emit(<EOL>start_task_header,<EOL>is_header=True,<EOL>task_level=index + <NUM_LIT:1>,<EOL>)<EOL><DEDENT>for old_record in self.tasks[self.cur_task]:<EOL><INDENT>self.pretty_emit(old_record)<EOL><DEDENT>self.tasks[self.cur_task].clear()<EOL>
Handles an error log record that should be shown

Returns:
    None