Change hook fail to warn.

This commit is contained in:
femsci 2022-12-28 11:04:44 +01:00
parent 7f4c294758
commit e798f138bc
Signed by: femsci
GPG key ID: 08F7911F0E650C67

View file

@ -29,7 +29,12 @@ perror() {
}
err_trap() {
LAST=$?
if [[ $LAST -lt 0 ]]; then
perror "Error during execution of $EXEC_NAME."
elif [[ $LAST -gt 0 ]]; then
pwarn "Hook $EXEC_NAME finished unsuccessfully."
fi
}
export -f pinfo pwarn perror