From: Rob Browning Date: Tue, 5 Nov 2013 22:25:54 +0000 (-0600) Subject: Include the chattr value in the ApplyError. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4ca559aec7515b2673bd2e1172b947145586cf67;p=packages%2Fb%2Fbup.git Include the chattr value in the ApplyError. Signed-off-by: Rob Browning --- diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py index e688724..1f629c6 100644 --- a/lib/bup/metadata.py +++ b/lib/bup/metadata.py @@ -593,7 +593,8 @@ class Metadata: except OSError, e: if e.errno in (errno.ENOTTY, errno.EOPNOTSUPP, errno.ENOSYS, errno.EACCES): - raise ApplyError('Linux chattr: %s' % e) + raise ApplyError('Linux chattr: %s (0x%s)' + % (e, hex(self.linux_attr))) else: raise