existing_xattrs = set(xattr.list(path, nofollow=True))
except IOError, e:
if e.errno == errno.EACCES:
- raise ApplyError('xattr.set: %s' % e)
+ raise ApplyError('xattr.set %r: %s' % (path, e))
else:
raise
for k, v in self.linux_xattr:
except IOError, e:
if e.errno == errno.EPERM \
or e.errno == errno.EOPNOTSUPP:
- raise ApplyError('xattr.set: %s' % e)
+ raise ApplyError('xattr.set %r: %s' % (path, e))
else:
raise
existing_xattrs -= frozenset([k])
xattr.remove(path, k, nofollow=True)
except IOError, e:
if e.errno == errno.EPERM:
- raise ApplyError('xattr.remove: %s' % e)
+ raise ApplyError('xattr.remove %r: %s' % (path, e))
else:
raise