From: Christian Herdtweck Date: Fri, 17 Jun 2016 13:29:19 +0000 (+0200) Subject: correct a comment, add more info to log message X-Git-Tag: v2.2~26 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=7b07645e0868b0b55e9c5bcf73f1c2777e61abcb;p=python-delta-tar correct a comment, add more info to log message --- diff --git a/deltatar/deltatar.py b/deltatar/deltatar.py index 79a24ea..bad7ec9 100644 --- a/deltatar/deltatar.py +++ b/deltatar/deltatar.py @@ -297,8 +297,7 @@ class DeltaTar(object): break # if the string ends with / it's a directory, and if the - # path does not start with the directory, then it's not - # included + # path is contained in it, it is included if i.endswith('/') and path.startswith(i): match = MATCH break @@ -1297,7 +1296,8 @@ class DeltaTar(object): self.logger.debug("restore %s" % ipath['path']) helper.restore(ipath, l_no, restore_callback) except Exception as e: - self.logger.error("FAILED to restore: " + ipath.get('path', '')) + self.logger.error("FAILED to restore: {} ({})" + .format(path.get('path', ''), e)) continue # if both files are equal, we have nothing to restore