summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/common6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/common b/etc/common
index 0fc319e..7f988f1 100644
--- a/etc/common
+++ b/etc/common
@@ -198,7 +198,11 @@ hook () {
${HOOKSCR}
result=$?
set -e
- log "Back from hook $HOOKNR, got returncode ${result}"
+ if [ ${result} -ne 0 ] ; then
+ error "Back from hook $HOOKNR, got returncode ${result}"
+ else
+ log "Back from hook $HOOKNR, got returncode ${result}"
+ fi
return $result
else
return 0