From: Simon Hausmann Date: Thu, 8 Feb 2007 14:45:16 +0000 (+0100) Subject: slightly better error handling X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=852b91430246f1a18248c16cb0ad8cfc5843e8b4;p=python%2Ffast-export.git slightly better error handling --- diff --git a/p4-fast-export.py b/p4-fast-export.py index 36381fb..9f4b16a 100755 --- a/p4-fast-export.py +++ b/p4-fast-export.py @@ -230,7 +230,11 @@ else: sys.stdout.flush() cnt = cnt + 1 - commit(description) + try: + commit(description) + except: + print gitError.read() + sys.exit(1) gitStream.close() gitOutput.close() @@ -240,3 +244,4 @@ print "" os.popen("git-repo-config p4.depotpath %s" % prefix).read() +sys.exit(0)