From: Karl Hasselström Date: Tue, 04 Sep 2007 15:29:01 GMT Subject: Re: [PATCH] Functions for updating refs. Message-ID: <20070904152901.GA31299@diana.vm.bytemark.co.uk> In-Reply-To: <46DD7506.3090503@eudaptics.com> On 2007-09-04 17:08:54 +0200, Johannes Sixt wrote: > Johannes Schindelin schrieb: > > > Well, my idea was to let _error() print the message, and just die(). > > How do you avoid that die() prints an error, too? Make a generic function that takes a function pointer argument, then call it with die or error as appropriate. -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle