From 134ff0b4da7c00c6b7763efacb36acb2581e1f2c Mon Sep 17 00:00:00 2001 From: owsla Date: Fri, 19 Dec 2008 03:07:18 +0000 Subject: Print a more helpful error message if we cannot read the backup destination. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@972 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/rdiff_backup/rpath.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rdiff-backup/rdiff_backup') diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index d657c1c..3655084 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -255,6 +255,8 @@ def rename(rp_source, rp_dest): try: rp_source.conn.os.rename(rp_source.path, rp_dest.path) except OSError, error: + # XXX errno.EINVAL and len(rp_dest.path) >= 260 indicates + # pathname too long on Windows if error.errno != errno.EEXIST: log.Log("OSError while renaming %s to %s" % (rp_source.path, rp_dest.path), 1) -- cgit v1.2.1