def get_errors(error_string):

    lines = error_string.splitlines()
    error_lines = tuple(line for line in lines if line.find('Error') >= 0)
    if len(error_lines) > 0:
        return '\n'.join(error_lines)
    else:
        return error_string.strip()
returns all lines in the error_string that start with the string "error"
dataset/ETHPy150Open tanghaibao/jcvi/apps/tesseract.py/get_errors