From 453995f70f93c0071c5f7534f58864414f01cfde Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 4 Nov 2009 21:39:22 +0100 Subject: improved error when setting up server based test to make clear a server needs to be started --- lib/git/remote.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/git/remote.py') diff --git a/lib/git/remote.py b/lib/git/remote.py index 9141fc3b..b1c90bd5 100644 --- a/lib/git/remote.py +++ b/lib/git/remote.py @@ -607,8 +607,11 @@ class Remote(LazyMixin, Iterable): # END for each line try: proc.wait() - except GitCommandError: + except GitCommandError,e: # if a push has rejected items, the command has non-zero return status + # a return status of 128 indicates a connection error - reraise the previous one + if proc.poll() == 128: + raise pass # END exception handling return output -- cgit v1.2.1