From 4ca559aec7515b2673bd2e1172b947145586cf67 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Tue, 5 Nov 2013 16:25:54 -0600 Subject: [PATCH] Include the chattr value in the ApplyError. Signed-off-by: Rob Browning --- lib/bup/metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2