def process_errors(self, errors):
        # NOTE (jasminp) Error message format depends on driver. Does this catch them all?

        lp = [re.compile(r'.*?0:(\d+): (.*)'),          # intel/win
              re.compile(r'0\((\d+)\) :[^:]*: (.*)')]   # nvidia/win

        linesOut = []
        for line in errors.split('\n'):
            result = None
            for p in lp:
                result = p.match(line)
                if result:
                    linesOut.append("%s(%d): error: %s" % (self._filename,
                                                        int(result.group(1)) - preamble_lines,
                                                        result.group(2)))
                    break
            if not result:
                linesOut.append(line)
        return '\n'.join(linesOut)
dataset/ETHPy150Open alexjc/shadertoy-render/shadertoy-render.py/RenderingCanvas.process_errors/original