302c208fc5
Add common error function in hooks Error messages are printed in stderr Reviewed By: tcberner, #portmgr Differential Revision: https://reviews.freebsd.org/D38026
7 lines
96 B
Bash
7 lines
96 B
Bash
error() {
|
|
echo -e "$*" > /dev/stderr
|
|
}
|
|
|
|
pre_commit_error() {
|
|
error "[pre-commit] ERROR: $*"
|
|
}
|