Show More
@@ -417,6 +417,10 b' class SubprocessIOChunker(object):' | |||||
417 | "Subprocess exited due to an error:\n" + err) |
|
417 | "Subprocess exited due to an error:\n" + err) | |
418 | if _returncode and fail_on_return_code: |
|
418 | if _returncode and fail_on_return_code: | |
419 | err = ''.join(bg_err) |
|
419 | err = ''.join(bg_err) | |
|
420 | if not err: | |||
|
421 | # maybe get empty stderr, try stdout instead | |||
|
422 | # in many cases git reports the errors on stdout too | |||
|
423 | err = ''.join(bg_out) | |||
420 | raise EnvironmentError( |
|
424 | raise EnvironmentError( | |
421 | "Subprocess exited with non 0 ret code:%s: stderr:%s" % ( |
|
425 | "Subprocess exited with non 0 ret code:%s: stderr:%s" % ( | |
422 | _returncode, err)) |
|
426 | _returncode, err)) |
General Comments 0
You need to be logged in to leave comments.
Login now