From: Miklos Vajna Date: Sun, 27 Sep 2009 08:49:06 GMT Subject: Re: [PATCH] git branch -D: give a better error message when lockfile creation fails Message-ID: <20090927084906.GR32702@genesis.frugalware.org> In-Reply-To: <20090927082123.GD15393@coredump.intra.peff.net> On Sun, Sep 27, 2009 at 04:21:23AM -0400, Jeff King wrote: > Maybe it is just me, but that extra die() that should never be reached > is terribly ugly. I would do it with two functions, one that dies and > one that doesn't, with a helper to format the message. IOW, this: Okay, that's fine with me - thanks for providing a patch as well.