From 5941c9026bb06ed5aa666a7ace71e7c1f2af41c9 Mon Sep 17 00:00:00 2001 From: owsla Date: Tue, 23 Dec 2008 18:24:13 +0000 Subject: 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 --- rdiff-backup/rdiff_backup/robust.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rdiff-backup/rdiff_backup') 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): -- cgit v1.2.1