Skip to content

Commit

Permalink
better feedback for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lovato committed Jul 12, 2018
1 parent 9ae33ba commit bb9bf84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks4git/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ def main():
if result[0] != 0:
no_fails = False
style = Fore.RED + Style.BRIGHT
out('FAIL', "%s'%s' step failed to execute %s" % (style, command.split()[0], Style.RESET_ALL))
out('FAIL', "%s'%s' step failed to execute %s" % (style, hook[command_item], Style.RESET_ALL))
else:
style = Fore.GREEN
out('PASS', "%s'%s' step executed successfully %s" % (style, command.split()[0], Style.RESET_ALL))
out('PASS', "%s'%s' step executed successfully %s" % (style, hook[command_item], Style.RESET_ALL))
return no_fails
except Exception as e: # noqa
out('ERR!', str(e), color=Fore.RED)
Expand Down

0 comments on commit bb9bf84

Please sign in to comment.