Adding a message about which hook made a build fail, if any.

This commit is contained in:
Daniel Baumann 2009-09-02 20:50:17 +02:00
parent e9c580b6ae
commit 74a7af6571
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ then
fi
# Executing hook
./"${HOOK}"
./"${HOOK}" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
done
# Creating stage file

View File

@ -54,7 +54,7 @@ do
fi
# Executing hook
Chroot chroot "./root/${HOOK}"
Chroot chroot "./root/${HOOK}" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
# Removing hook
rm -f chroot/root/"${HOOK}"

View File

@ -52,7 +52,7 @@ then
fi
# Executing hook
Chroot chroot "/root/$(basename ${HOOK})"
Chroot chroot "/root/$(basename ${HOOK})" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
# Removing hook
rm -f chroot/root/"$(basename ${HOOK})"