]> arthur.barton.de Git - bup.git/commitdiff
Include the chattr value in the ApplyError.
authorRob Browning <rlb@defaultvalue.org>
Tue, 5 Nov 2013 22:25:54 +0000 (16:25 -0600)
committerRob Browning <rlb@defaultvalue.org>
Tue, 5 Nov 2013 22:52:38 +0000 (16:52 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py

index e6887247803603b222149eb07e1ba887f95c246f..1f629c6174f77d45d9c465419ff2f7e15edffc1b 100644 (file)
@@ -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