Commit 6ed89661 authored by owsla's avatar owsla

Print a more helpful error message if we cannot read the backup destination.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@972 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 8805b483
New in v1.2.3 (????/??/??) New in v1.2.3 (????/??/??)
--------------------------- ---------------------------
Print a more helpful error message if we cannot read the backup destination.
Closes Ubuntu bug #292586 (again). (Andrew Ferguson)
Print a more helpful error message if we cannot write to the backup Print a more helpful error message if we cannot write to the backup
destination. (Andrew Ferguson) destination. (Andrew Ferguson)
......
...@@ -255,6 +255,8 @@ def rename(rp_source, rp_dest): ...@@ -255,6 +255,8 @@ def rename(rp_source, rp_dest):
try: try:
rp_source.conn.os.rename(rp_source.path, rp_dest.path) rp_source.conn.os.rename(rp_source.path, rp_dest.path)
except OSError, error: except OSError, error:
# XXX errno.EINVAL and len(rp_dest.path) >= 260 indicates
# pathname too long on Windows
if error.errno != errno.EEXIST: if error.errno != errno.EEXIST:
log.Log("OSError while renaming %s to %s" log.Log("OSError while renaming %s to %s"
% (rp_source.path, rp_dest.path), 1) % (rp_source.path, rp_dest.path), 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment