'Sanitize fetcher errors
qparam shortError:
qparam errorStr:
qreturn: The new error string'

def fetcher(self, shortError, errorStr):

    for (pattern, replacement) in self.fetch_pattern:
        p = re.compile(pattern)
        m = p.search(errorStr)
        if m:
            return replacement
    return ('Fetcher    subprocess    error:    %s\n%s' % (shortError, errorStr))
