Ejemplo n.º 1
0
def log_error(err, dst):
    if err == errno.EACCES:
        LOG.error(u"Not enough permission on: {0}".format(dst))

    elif err == errno.ENOSPC:
        LOG.error(u"Not enough space on destination: {0}".format(os.path.dirname(dst)))

    elif err == errno.ENOENT:
        LOG.error(u"Unable to locate source file to copy to {0}".format(dst))

    else:
        LOG.error(u"Unknown error occurred while executing operation to destination: {0}".format(os.path.dirname(dst)))
Ejemplo n.º 2
0
def log_error(err, dst):
    if err == errno.EACCES:
        LOG.error(u"Not enough permission on: {0}".format(dst))

    elif err == errno.ENOSPC:
        LOG.error(u"Not enough space on destination: {0}".format(
            os.path.dirname(dst)))

    elif err == errno.ENOENT:
        LOG.error(u"Unable to locate source file to copy to {0}".format(dst))

    else:
        LOG.error(
            u"Unknown error occurred while executing operation to destination: {0}"
            .format(os.path.dirname(dst)))