Commit 62a2e782 authored by owsla's avatar owsla

Report that connection has dropped if filesystem operation returns ENOTCONN.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@981 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent e4a7371d
New in v1.2.3 (????/??/??) New in v1.2.3 (????/??/??)
--------------------------- ---------------------------
Report that connection has dropped if filesystem operation returns ENOTCONN.
Closes Ubuntu bug #219920. (Andrew Ferguson)
Print a more helpful error message if we get an error while reading an old Print a more helpful error message if we get an error while reading an old
current_mirror marker. This can happen because it has been locked or deleted current_mirror marker. This can happen because it has been locked or deleted
by a just-finished rdiff-backup process. Closes Ubuntu bugs #88140 and by a just-finished rdiff-backup process. Closes Ubuntu bugs #88140 and
......
...@@ -74,6 +74,8 @@ def is_routine_fatal(exc): ...@@ -74,6 +74,8 @@ def is_routine_fatal(exc):
return "Lost connection to the remote system" return "Lost connection to the remote system"
elif isinstance(exc, SignalException): elif isinstance(exc, SignalException):
return "Killed with signal %s" % (exc,) 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 return None
def get_error_handler(error_type): def get_error_handler(error_type):
......
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