mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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: $*"
|
|
}
|