def _parse_error(self, err):
self.logger.debug(err)<EOL>stack = err.get('<STR_LIT>', [])<EOL>if not err['<STR_LIT:message>'].startswith('<STR_LIT>'):<EOL><INDENT>err['<STR_LIT:message>'] = '<STR_LIT>' + err['<STR_LIT:message>']<EOL><DEDENT>errmsg = '<STR_LIT>' % err['<STR_LIT:message>']<EOL>if not isinstance(stack, StructArray):<EOL><INDENT>return errmsg<EOL><DEDENT>errmsg += '<STR_LIT>'<EOL>for item in stack[:-<NUM_LIT:1>]:<EOL><INDENT>errmsg += '<STR_LIT>' % item<EOL>try:<EOL><INDENT>errmsg += '<STR_LIT>' % item<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return errmsg<EOL>
Create a traceback for an Octave evaluation error.