Report git errors

This commit is contained in:
Martin Lablans
2022-11-04 15:26:27 +01:00
parent ab3a5790de
commit 9b3acb4899
2 changed files with 10 additions and 5 deletions

View File

@ -119,9 +119,13 @@ fixPermissions() {
source lib/monitoring.sh
fail_and_report() {
report_error() {
log ERROR "$2"
hc_send $1 "$2"
}
fail_and_report() {
report_error $@
exit $1
}