diff mbox series

bup: cat-file: fix error print

Message ID 20210321142333.16326-1-johannes@sipsolutions.net
State New
Headers show
Series bup: cat-file: fix error print | expand

Commit Message

Johannes Berg March 21, 2021, 2:23 p.m. UTC
Some variable renaming and bytes issues, if a target cannot
be found in cat-file.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 lib/cmd/cat-file-cmd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/cmd/cat-file-cmd.py b/lib/cmd/cat-file-cmd.py
index 388ca03abcbe..ebe27ce43a0a 100755
--- a/lib/cmd/cat-file-cmd.py
+++ b/lib/cmd/cat-file-cmd.py
@@ -56,7 +56,7 @@  resolved = vfs.resolve(repo, target, follow=False)
 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)