From: Johannes Berg Date: Sun, 21 Mar 2021 14:23:33 +0000 (+0100) Subject: bup: cat-file: fix error print X-Git-Url: https://arthur.barton.de/gitweb/?p=bup.git;a=commitdiff_plain;h=12bb311d37871807f0883645b3a37d590ca2cf9b bup: cat-file: fix error print Some variable renaming and bytes issues, if a target cannot be found in cat-file. Signed-off-by: Johannes Berg Reviewed-by: Rob Browning --- diff --git a/lib/bup/cmd/cat_file.py b/lib/bup/cmd/cat_file.py index 911fe51..e45d1ea 100755 --- a/lib/bup/cmd/cat_file.py +++ b/lib/bup/cmd/cat_file.py @@ -39,7 +39,7 @@ def main(argv): leaf_name, leaf_item = resolved[-1] if not leaf_item: log('error: cannot access %r in %r\n' - % ('/'.join(name for name, item in resolved), path)) + % (b'/'.join(name for name, item in resolved), target)) sys.exit(1) mode = vfs.item_mode(leaf_item)