##// END OF EJS Templates
hooks: show git stderr when git hook execution fails....
marcink -
r220:427ed58b default
parent child Browse files
Show More
@@ -313,12 +313,12 b' def _run_command(arguments):'
313 # Probably this should be using subprocessio.
313 # Probably this should be using subprocessio.
314 process = subprocess.Popen(
314 process = subprocess.Popen(
315 arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
315 arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
316 stdout, _ = process.communicate()
316 stdout, stderr = process.communicate()
317
317
318 if process.returncode != 0:
318 if process.returncode != 0:
319 raise Exception(
319 raise Exception(
320 'Command %s exited with exit code %s' % (arguments,
320 'Command %s exited with exit code %s: stderr:%s' % (
321 process.returncode))
321 arguments, process.returncode, stderr))
322
322
323 return stdout
323 return stdout
324
324
General Comments 0
You need to be logged in to leave comments. Login now