Add proper error message when server hangs up.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 8 Sep 2009 12:45:38 +0000 (14:45 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 8 Sep 2009 12:45:38 +0000 (14:45 +0200)
NEWS
dulwich/errors.py

diff --git a/NEWS b/NEWS
index f917763df1095443f2468ea8bc31c116b682fec1..fd11bc85694be417ba0d8f2943a8e3296094ded2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,10 @@
 
   * Use binascii.hexlify / binascii.unhexlify for better performance.
 
+  * Cope with extra unknown data in index files by ignoring it (for now).
+
+  * Add proper error message when server unexpectedly hangs up. (#415843)
+
 0.3.3  2009-07-23
 
  FEATURES
index 6e014e6cd891ad51a0a7cbef95316907ef58fe62..42c63c4df60a155ae4e148df6591524f901e844e 100644 (file)
@@ -104,3 +104,7 @@ class GitProtocolError(Exception):
 
 class HangupException(GitProtocolError):
     """Hangup exception."""
+
+    def __init__(self):
+        Exception.__init__(self,
+            "The remote server unexpectedly closed the connection.")