Print hookid on failure.

This commit is contained in:
Anthony Sottile
2014-07-22 06:54:48 -07:00
parent 196fd87df0
commit b8c8120f2a
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -84,6 +84,7 @@ def _run_single_hook(runner, repository, hook_id, args, write, skips=set()):
write(color.format_color(pass_fail, print_color, args.color) + '\n')
if (stdout or stderr) and (retcode or args.verbose):
write('hookid: {0}\n'.format(hook['id']))
write('\n')
for output in (stdout, stderr):
if output.strip():