Browse Source
Add common error function in hooks Error messages are printed in stderr Reviewed By: tcberner, #portmgr Differential Revision: https://reviews.freebsd.org/D38026

7 changed files with 50 additions and 14 deletions
@ -0,0 +1,7 @@ |
|||
error() { |
|||
echo -e "$*" > /dev/stderr |
|||
} |
|||
|
|||
pre_commit_error() { |
|||
error "[pre-commit] ERROR: $*" |
|||
} |
Loading…
Reference in new issue