From: Christian Couder Date: Thu, 02 Mar 2017 15:53:28 GMT Subject: Re: [PATCH v1] Travis: also test on 32-bit Linux Message-ID: In-Reply-To: On Thu, Mar 2, 2017 at 3:22 PM, Johannes Schindelin wrote: > >> >> +set -e >> > >> > Is this really necessary? I really like to avoid `set -e`, in >> > particular when we do pretty much everything in && chains anyway. >> >> Agreed, not really necessary here as we just invoke one command. Out of >> curiosity: Why do you try to avoid it? I set it by default in all my >> scripts. > > I try to avoid it because it encourages a style that omits helpful error > messages. Yeah, we prefer to define and use a die() function like this: die () { printf >&2 '%s\n' "$*" exit 1 } do_something || die "meaningful error message"