]> arthur.barton.de Git - bup.git/commitdiff
midx: correct path_msg() use in an error path
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 24 Jan 2021 20:28:35 +0000 (21:28 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 18 Apr 2021 17:26:09 +0000 (12:26 -0500)
pathmsg() doesn't exist, it should be path_msg(). Fix that.

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

index 644cea8d06600a2d0fb2fdb240bdff56cd3cba14..b7ee9506d637d331fbff515cfe247ab916061ae5 100755 (executable)
@@ -49,7 +49,7 @@ def check_midx(name):
     try:
         ix = git.open_idx(name)
     except git.GitError as e:
-        add_error('%s: %s' % (pathmsg(name), e))
+        add_error('%s: %s' % (path_msg(name), e))
         return
     for count,subname in enumerate(ix.idxnames):
         sub = git.open_idx(os.path.join(os.path.dirname(name), subname))