Added 'set -e' to build script