gnustavo / Git-Hooks

Framework for implementing Git (and Gerrit) hooks
http://search.cpan.org/dist/Git-Hooks/
41 stars 17 forks source link

Error message prefix #62

Closed boudekerk closed 4 years ago

boudekerk commented 4 years ago

It would be nice if we could prefix the actual error message. GitLab requires this to show the message in the UI. The error-header doesn't work for this as it's not on the same line.

https://docs.gitlab.com/ee/administration/server_hooks.html#custom-error-messages

gnustavo commented 4 years ago

Good idea! I'll think about it.

gnustavo commented 4 years ago

I just released v2.12.0 with a new configuration option (githooks.error-prefix) which should help with this.

Please, try it out and comment.

boudekerk commented 4 years ago

Works like a charm. Thanks!