Thread (11 messages) flat view 11 messages, 5 authors, 2017-03-05

Re: [PATCH v1] Travis: also test on 32-bit Linux

From: Christian Couder <hidden>
Date: 2017-03-02 16:03:51

On Thu, Mar 2, 2017 at 3:22 PM, Johannes Schindelin
[off-list ref] wrote:
quoted
quoted
quoted
+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"
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help