summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-23 18:24:13 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-23 18:24:13 +0000
commit5941c9026bb06ed5aa666a7ace71e7c1f2af41c9 (patch)
treee850e1439c89ab08e90fd3bcd1891dc242b548d3 /rdiff-backup/rdiff_backup
parent4a631e0ba92c7a7aea25dfeb36f645b55c51e856 (diff)
downloadrdiff-backup-5941c9026bb06ed5aa666a7ace71e7c1f2af41c9.tar.gz
Report that connection has dropped if filesystem operation returns ENOTCONN.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@981 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r--rdiff-backup/rdiff_backup/robust.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/robust.py b/rdiff-backup/rdiff_backup/robust.py
index 0e8b41d..495cda3 100644
--- a/rdiff-backup/rdiff_backup/robust.py
+++ b/rdiff-backup/rdiff_backup/robust.py
@@ -74,6 +74,8 @@ def is_routine_fatal(exc):
return "Lost connection to the remote system"
elif isinstance(exc, SignalException):
return "Killed with signal %s" % (exc,)
+ elif isinstance(exc, EnvironmentError) and e.errno == errno.ENOTCONN:
+ return ("Filesystem reports connection failure:\n%s" % exc)
return None
def get_error_handler(error_type):