Morning,

I am attempting to write a pre-commit hook that enforces a policy to some
group and warns the rest of the team. The hook is in python and it just
check that jira ticket exist on the commit log.

The problem I am facing is I am not able to both warn and error for
some reason. If I exit, the failure reason is displayed to the user.

If I don't exit, but attempts to send a warning to the client,  nothing
show up even in the logs.

I am using sys.stderr.write and sys.stdout.write for error and warning
respectively. Is it technically possible to do this? Would be grateful
for your help on this.

Regards,
William

Reply via email to