@matheusbsbs / matheus-bagliano / commits / 7315866824
Fork 0

Catch io exceptions from git fast-import again and print the error message.

Signed-off-by: Simon Hausmann <hausmann@kde.org>

Simon Hausmann committed Feb 8, 2007 at 15:45 UTC 7315866824607e0a7da807dbee84c60cfe5c5719
1 file changed +6 -1
contrib/fast-import/p4-fast-export.py
+6 -1
@@ -230,7 +230,11 @@ else:
230 sys.stdout.flush()
231 cnt = cnt + 1
232
233 - commit(description)
233 + try:
234 + commit(description)
235 + except:
236 + print gitError.read()
237 + sys.exit(1)
238
239 gitStream.close()
240 gitOutput.close()
@@ -240,3 +244,4 @@ print ""
244
245 os.popen("git-repo-config p4.depotpath %s" % prefix).read()
246
247 +sys.exit(0)