'Give an error message for problems extracting file(s)'

def extraction_error(self):

    old_exc = sys.exc_info()[1]
    cache_path = (self.extraction_path or get_default_cache())
    err = ExtractionError(("Can't    extract    file(s)    to    egg    cache\n\nThe    following    error    occurred    while    trying    to    extract    file(s)    to    the    Python    egg\ncache:\n\n        %s\n\nThe    Python    egg    cache    directory    is    currently    set    to:\n\n        %s\n\nPerhaps    your    account    does    not    have    write    access    to    this    directory?        You    can\nchange    the    cache    directory    by    setting    the    PYTHON_EGG_CACHE    environment\nvariable    to    point    to    an    accessible    directory.\n" % (old_exc, cache_path)))
    err.manager = self
    err.cache_path = cache_path
    err.original_error = old_exc
    raise err
