]> arthur.barton.de Git - bup.git/commitdiff
restore: fix error message for inaccessible items
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 29 Dec 2020 21:26:40 +0000 (22:26 +0100)
committerRob Browning <rlb@defaultvalue.org>
Thu, 31 Dec 2020 20:34:51 +0000 (14:34 -0600)
This actually shows up during tests, but it's hidden as it's
an error where we _expect_ bup to fail (and don't check why).
Fix the message in this case.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/cmd/restore-cmd.py

index 37977248c45989707021c77000ed5e7544f67052..09fb9ffc039cef7626a3281fb14c3b591810af45 100755 (executable)
@@ -285,7 +285,7 @@ def main():
         leaf_name, leaf_item = resolved[-1]
         if not leaf_item:
             add_error('error: cannot access %r in %r'
-                      % ('/'.join(name for name, item in resolved),
+                      % (b'/'.join(name for name, item in resolved),
                          path))
             continue
         if not path_name or path_name == b'.':