From: Johannes Schindelin Date: Mon, 14 Apr 2008 14:33:54 GMT Subject: Re: [PATCH] builtin-apply: Show a more descriptive error on failure when opening a patch Message-ID: In-Reply-To: <1208183018-27887-1-git-send-email-albertito@gmail.com> Hi, On Mon, 14 Apr 2008, Alberto Bertogli wrote: > + if (fd < 0) { > + error("can't open patch '%s': %s", arg, > + strerror(errno)); > + return 1; > + } Do you absolutely want to retain the curly braces, and have two statements? I would prefer "return error(...)", and if you absolutely insist on a return 1: "return !!error(...)". Ciao, Dscho